Skip to content

Commit

Permalink
unit test for initSimpleImg
Browse files Browse the repository at this point in the history
  • Loading branch information
bluebill1049 committed Feb 22, 2019
1 parent 5285c2e commit 8f98137
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/logic/initSimpleImg.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import initSimpleImg from '../../src/initSimpleImg';
import observerStart, { defaultConfig } from '../../src/logic/observerStart';

jest.mock('../../src/logic/observerStart');

describe('initSimpleImg', () => {
it('should start the observer', () => {
initSimpleImg();
expect(observerStart).toBeCalledWith(defaultConfig, false);
});
});

0 comments on commit 8f98137

Please sign in to comment.