We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d513d7 commit 1ef5b3bCopy full SHA for 1ef5b3b
tests/integration/autodiscovery.js
@@ -17,16 +17,14 @@ const expectedResults = {
17
firstPostTitle: 'Markup: HTML Tags and Formatting',
18
};
19
20
-const noop = () => {};
21
-
22
describe( 'integration: discover()', () => {
23
let apiPromise;
24
25
beforeAll( () => {
26
apiPromise = WPAPI.discover( 'http://wpapi.local' );
27
// Stub warn and error
28
- jest.spyOn( global.console, 'warn' ).mockImplementation( noop );
29
- jest.spyOn( global.console, 'error' ).mockImplementation( noop );
+ jest.spyOn( global.console, 'warn' ).mockImplementation( () => {} );
+ jest.spyOn( global.console, 'error' ).mockImplementation( () => {} );
30
} );
31
32
it( 'returns a promise', () => {
0 commit comments