Fix assertion in mocks_helper_spec.js

This commit is contained in:
Winnie Hellmann 2019-08-20 18:20:21 +00:00 committed by Mike Greiling
parent ef3b18deb3
commit a56712433e

View file

@ -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);
});
});