Skip to content

Commit

Permalink
Fixed unit tests for customCallbackHandler.js
Browse files Browse the repository at this point in the history
  • Loading branch information
James Petts committed Feb 13, 2019
1 parent 9ca97c6 commit dfd6f8b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/eventDispatchers/shared/customCallbackHandler.test.js
Expand Up @@ -28,6 +28,9 @@ jest.mock('./../../store/index.js', () => ({
}));

jest.mock('./../../store/getActiveToolsForElement.js', () => jest.fn());
jest.mock('./../../store/filterToolsUsableWithMultiPartTools.js', () =>
jest.fn()
);

describe('eventDispatchers/customCallbackHandler.js', () => {
const firstToolWithCustomFunction = state.tools[1];
Expand All @@ -40,6 +43,7 @@ describe('eventDispatchers/customCallbackHandler.js', () => {

beforeEach(() => {
state.isToolLocked = false;
state.isMultiPartToolActive = false;

jest.resetAllMocks();
jest.clearAllMocks();
Expand Down

0 comments on commit dfd6f8b

Please sign in to comment.