console-fail-test
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -36,4 +36,4 @@ { | ||
}, | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"dependencies": {} | ||
} |
@@ -259,3 +259,3 @@ # console-fail-test | ||
By default, `console-fail-test` will error on _any_ called `console` method. If you'd like ignore certain methods, pass a `console` object to the `cft` API when you set it up: | ||
By default, `console-fail-test` will error on _any_ called `console` method. If you'd like allow certain methods, pass a `console` object to the `cft` API when you set it up: | ||
@@ -265,3 +265,3 @@ ```js | ||
console: { | ||
warn: false, // won't error on any instance of console.warn | ||
warn: true, // won't error on any instance of console.warn | ||
}, | ||
@@ -268,0 +268,0 @@ }); |
@@ -13,3 +13,3 @@ "use strict"; | ||
const methodSpies = {}; | ||
const relevantMethodNames = console_1.consoleMethodNames.filter((name) => !!request.console[name]); | ||
const relevantMethodNames = console_1.consoleMethodNames.filter((name) => !request.console[name]); | ||
testEnvironment.before(() => { | ||
@@ -16,0 +16,0 @@ for (const methodName of relevantMethodNames) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
490054