summaryrefslogtreecommitdiff
path: root/spec/frontend/mocks
diff options
context:
space:
mode:
authorWinnie Hellmann <winnie@gitlab.com>2019-08-20 18:20:21 +0000
committerMike Greiling <mike@pixelcog.com>2019-08-20 18:20:21 +0000
commita56712433e654625a77cae583a5af5a97266d7fb (patch)
treea3f1603d823b6b96f3454b3b0051c0f3aae91f78 /spec/frontend/mocks
parentef3b18deb30677fece6b585391fe98ce415721a3 (diff)
downloadgitlab-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.js4
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);
});
});