Skip to content

Commit 10e5ae4

Browse files
author
JorvanW
committed
added a test for testing empty objects
1 parent 25e5aff commit 10e5ae4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎Sprint-2/interpret/invert.test.js‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,7 @@ test("when invert is passed duplicate values, the last key is kept", () => {
3636
1: "b",
3737
});
3838
});
39+
40+
test("when invert is passed with empty objects it should return an empty object", () => {
41+
expect(invert({})).toEqual({});
42+
});

0 commit comments

Comments
 (0)