Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
afterEach(() => {
/* eslint-disable no-console */
if (!console.error.threw && console.error.expected.length) {
expect(console.error.warned).to.have.keys(console.error.expected);
}
console.error.restore();
/* eslint-enable no-console */
_resetWarned();
deprecated._resetWarned();
});