Skip to content

Commit 7cb3b94

Browse files
committed
exercise 02.1 fixed
1 parent da44b46 commit 7cb3b94

File tree

1 file changed

+2
-1
lines changed
  • exercises/02.1-maping-array-objects-to-li

1 file changed

+2
-1
lines changed

exercises/02.1-maping-array-objects-to-li/tests.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,6 @@ test("You should use singleAnimal to get the anima for each of the iterations",
3838
})
3939

4040
test("You should add the key for each of them and it should be unique", () => {
41-
expect(app_content).toMatch("key={i}");
41+
// expect(app_content).toMatch("key={i}");
42+
expect(app_content).toMatch(/key\s*=\s*{\s*i\s*}/)
4243
})

0 commit comments

Comments
 (0)