Skip to content

Commit

Permalink
test(unflat): initial test for unflat method
Browse files Browse the repository at this point in the history
  • Loading branch information
kishor82 authored and Parul-rathva committed Jun 8, 2024
1 parent 6e6f186 commit 47b5199
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/unit/index.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { flat } from "../../index.js";
import { flat, unflat } from "../../index.js";

describe("flat functon", () => {
// Test case for flattening a simple object
Expand Down Expand Up @@ -81,3 +81,11 @@ describe("flat functon", () => {
expect(flat(data)).toEqual(expected);
});
});


describe("unflat functon", () => {
it('should have unflat function defined', () => {
// Assert that the unflat function is defined
expect(unflat).toBeDefined();
});
})

0 comments on commit 47b5199

Please sign in to comment.