Skip to content

Commit

Permalink
Fix test case for "wrapFunction"
Browse files Browse the repository at this point in the history
  • Loading branch information
jenssimon committed Mar 27, 2019
1 parent 845be34 commit a2638af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/loader.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Loader from './loader';

jest.useFakeTimers();

describe('Vanilla Promise Loader', () => {
describe('promise-loading-spinner', () => {
beforeEach(() => {
document.body.innerHTML = '<div id="js-page-loader"></div><div id="alternativeElement"></div>';
});
Expand Down Expand Up @@ -614,7 +614,7 @@ describe('Vanilla Promise Loader', () => {
return promise;
});

const loaderFunction = loader.loaderFnc(fn.bind('Hello'));
const loaderFunction = loader.wrapFunction(fn.bind('Hello'));

expect(fn.mock.calls).toHaveLength(0);

Expand Down

0 comments on commit a2638af

Please sign in to comment.