diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2019-08-20 18:20:21 +0000 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2019-08-20 18:20:21 +0000 |
commit | a56712433e654625a77cae583a5af5a97266d7fb (patch) | |
tree | a3f1603d823b6b96f3454b3b0051c0f3aae91f78 /spec/frontend/mocks | |
parent | ef3b18deb30677fece6b585391fe98ce415721a3 (diff) | |
download | gitlab-ce-a56712433e654625a77cae583a5af5a97266d7fb.tar.gz |
Fix assertion in mocks_helper_spec.js
Diffstat (limited to 'spec/frontend/mocks')
-rw-r--r-- | spec/frontend/mocks/mocks_helper_spec.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/frontend/mocks/mocks_helper_spec.js b/spec/frontend/mocks/mocks_helper_spec.js index 34be110a7e3..b8bb02c2f43 100644 --- a/spec/frontend/mocks/mocks_helper_spec.js +++ b/spec/frontend/mocks/mocks_helper_spec.js @@ -46,7 +46,9 @@ describe('mocks_helper.js', () => { readdir.sync.mockReturnValue([]); setupManualMocks(); - readdir.mock.calls.forEach(call => { + const readdirSpy = readdir.sync; + expect(readdirSpy).toHaveBeenCalled(); + readdirSpy.mock.calls.forEach(call => { expect(call[1].deep).toBeLessThan(100); }); }); |