Commit 2989ed07 authored by Mike Greiling's avatar Mike Greiling

Merge branch 'winh-fix-mocks_helper_spec' into 'master'

Fix assertion in mocks_helper_spec.js

See merge request gitlab-org/gitlab-ce!32005
parents ef3b18de a5671243
...@@ -46,7 +46,9 @@ describe('mocks_helper.js', () => { ...@@ -46,7 +46,9 @@ describe('mocks_helper.js', () => {
readdir.sync.mockReturnValue([]); readdir.sync.mockReturnValue([]);
setupManualMocks(); setupManualMocks();
readdir.mock.calls.forEach(call => { const readdirSpy = readdir.sync;
expect(readdirSpy).toHaveBeenCalled();
readdirSpy.mock.calls.forEach(call => {
expect(call[1].deep).toBeLessThan(100); expect(call[1].deep).toBeLessThan(100);
}); });
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment