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 5b4f7b2 commit d9ce1f9Copy full SHA for d9ce1f9
test/unit/log.test.js
@@ -1,7 +1,7 @@
1
-let config, subject, consoleWarn
+let config, subject
2
module.exports = {
3
beforeEach: () => {
4
- consoleWarn = td.replace(console, 'warn')
+ td.replace(console, 'warn')
5
config = td.replace('../../src/config').default
6
7
subject = require('../../src/log').default
@@ -28,7 +28,7 @@ module.exports = {
28
29
assert.throws(() => {
30
subject.error('aFunc', 'a message', 'http://url')
31
- }, /Error\: testdouble\.js \- aFunc \- a message \(see\: http\:\/\/url \)/)
+ }, /Error: testdouble\.js - aFunc - a message \(see: http:\/\/url \)/)
32
},
33
'suppressing errors': () => {
34
td.when(config()).thenReturn({suppressErrors: true})
0 commit comments