Skip to content

Commit 34394f6

Browse files
authored
Remove tests for invert function
Removed unit tests for the invert function from invert.js.
1 parent 0575f8c commit 34394f6

1 file changed

Lines changed: 1 addition & 26 deletions

File tree

‎Sprint-2/interpret/invert.js‎

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -50,29 +50,4 @@ function invert(obj) {
5050
return invertedObj;
5151
}
5252

53-
54-
55-
describe("invert", () => {
56-
test("inverts an empty object", () => {
57-
expect(invert({})).toEqual({});
58-
});
59-
60-
test("inverts a single property", () => {
61-
expect(invert({ a: 1 })).toEqual({ 1: "a" });
62-
});
63-
64-
test("inverts multiple properties", () => {
65-
expect(invert({ a: 1, b: 2 })).toEqual({
66-
1: "a",
67-
2: "b",
68-
});
69-
});
70-
71-
test("works with other values", () => {
72-
expect(invert({ x: 10, y: 20 })).toEqual({
73-
10: "x",
74-
20: "y",
75-
});
76-
});
77-
});
78-
53+
module.exports = invert;

0 commit comments

Comments
 (0)