Skip to content

Commit

Permalink
fix map test
Browse files Browse the repository at this point in the history
  • Loading branch information
maxrzaw committed Sep 18, 2022
1 parent c74ac60 commit c9d8e45
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/__tests__/Map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ test("Map", function() {
map.set("bar", 69);
expect(map.size()).toEqual(4);

console.log(map.size());

expect(map.get("bar")).toEqual(69);
expect(map.get("blaz")).toEqual(undefined);

map.delete("bar")
map.delete("barblabr");
expect(map.size()).toEqual(4);

map.delete("bar");
expect(map.size()).toEqual(3);
map.delete("barblabr")
expect(map.size()).toEqual(2);
expect(map.get("bar")).toEqual(undefined);
});

0 comments on commit c9d8e45

Please sign in to comment.