Skip to content

Commit 6d32545

Browse files
committed
create test file and add first test
1 parent 078648c commit 6d32545

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
const invert = require("./invert.js");
2+
// Given an object
3+
// When invert is passed this object
4+
// Then it should swap the keys and values in the object
5+
6+
describe("invert function", () => {
7+
test("should swap the keys and values in the object", () => {
8+
expect(invert({ a: 1 })).toEqual({ 1: "a" });
9+
});
10+
});

0 commit comments

Comments
 (0)