docs(test-parameterize): fixed snippet typo (#10276)

This commit is contained in:
Max Schmitt 2021-11-12 14:50:45 +01:00 committed by GitHub
parent 192f3e99f4
commit d97fe4e2af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,7 +12,7 @@ You can either parameterize tests on a test level or on a project level.
```js js-flavor=js
// example.spec.js
const people = ['Alice', 'Bob'];
for (const name in people) {
for (const name of people) {
test(`testing with ${name}`, async () => {
// ...
});
@ -23,7 +23,7 @@ for (const name in people) {
```js js-flavor=ts
// example.spec.ts
const people = ['Alice', 'Bob'];
for (const name in people) {
for (const name of people) {
test(`testing with ${name}`, async () => {
// ...
});