Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit a749895

Browse files
committed
Update tests to check for 2 values
1 parent 8eeabfe commit a749895

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arrayStringMap.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,9 @@ describe("Map with two objects", () => {
172172
assert([...arrayStringMap.keys()][1] === sampleArray3, "Array is sampleArray3");
173173
})
174174
it ("Map values returns array with two values", () => {
175-
assert([...arrayStringMap.values()].length === 1, "Array length is 1");
175+
assert([...arrayStringMap.values()].length === 2, "Array length is 2");
176176
assert([...arrayStringMap.values()][0] === sampleValue1, "Value is sampleValue1");
177+
assert([...arrayStringMap.values()][1] === sampleValue2, "Value is sampleValue2");
177178
})
178179
it("Map uses proper separator underneath", () => {
179180
// @ts-ignore - this is a test, and we need to make sure the underlying map

0 commit comments

Comments
 (0)