test: Split test utilities to improve test times (#2622)
This commit is contained in:
1 parent
8d44fcecf1
commit
ad89aa9538
234 files changed
+2730
-2516
No files matched your search
@@ -9,10 +9,10 @@ describe('log', () => {
|
||||
});
|
||||
it('should do nothing without debug logging set', () => {
|
||||
log({}, 'foo');
|
||||
expect(spy).not.toBeCalled();
|
||||
expect(spy).not.toHaveBeenCalled();
|
||||
});
|
||||
it('should log debug when appropriately configured', () => {
|
||||
log({ debug: { logging: true } }, 'foo');
|
||||
expect(spy).toBeCalledWith('foo');
|
||||
expect(spy).toHaveBeenCalledWith('foo');
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user