summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2019-08-20 18:20:22 +0000
committerMike Greiling <mike@pixelcog.com>2019-08-20 18:20:22 +0000
commit2989ed078c1d45b0959dcecb1bc3c8f4740a3c0d (patch)
treea3f1603d823b6b96f3454b3b0051c0f3aae91f78
parentef3b18deb30677fece6b585391fe98ce415721a3 (diff)
parenta56712433e654625a77cae583a5af5a97266d7fb (diff)
downloadgitlab-ce-2989ed078c1d45b0959dcecb1bc3c8f4740a3c0d.tar.gz
Merge branch 'winh-fix-mocks_helper_spec' into 'master'
Fix assertion in mocks_helper_spec.js See merge request gitlab-org/gitlab-ce!32005
-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);
});
});