mirror of
https://github.com/bendtherules/react-fiber-traverse.git
synced 2026-08-18 13:52:36 +00:00
Remove whitespaces in tests
This commit is contained in:
@@ -21,23 +21,19 @@ describe("Basic traverse test", () => {
|
||||
|
||||
it("should work for depth=1", () => {
|
||||
const rootNode = mountAndGetRootNode(CDepth1, container);
|
||||
|
||||
const mockCallback = jest.fn();
|
||||
|
||||
traverse(rootNode, mockCallback);
|
||||
|
||||
// The mock function is called twice
|
||||
expect(mockCallback.mock.calls.length).toBe(1);
|
||||
});
|
||||
|
||||
it("should work for depth=2", () => {
|
||||
const rootNode = mountAndGetRootNode(CDepth2, container);
|
||||
|
||||
const mockCallback = jest.fn();
|
||||
|
||||
traverse(rootNode, mockCallback);
|
||||
|
||||
// The mock function is called twice
|
||||
expect(mockCallback.mock.calls.length).toBe(2);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user