Skip to content

Commit d9ce1f9

Browse files
committed
be standard
1 parent 5b4f7b2 commit d9ce1f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/unit/log.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
let config, subject, consoleWarn
1+
let config, subject
22
module.exports = {
33
beforeEach: () => {
4-
consoleWarn = td.replace(console, 'warn')
4+
td.replace(console, 'warn')
55
config = td.replace('../../src/config').default
66

77
subject = require('../../src/log').default
@@ -28,7 +28,7 @@ module.exports = {
2828

2929
assert.throws(() => {
3030
subject.error('aFunc', 'a message', 'http://url')
31-
}, /Error\: testdouble\.js \- aFunc \- a message \(see\: http\:\/\/url \)/)
31+
}, /Error: testdouble\.js - aFunc - a message \(see: http:\/\/url \)/)
3232
},
3333
'suppressing errors': () => {
3434
td.when(config()).thenReturn({suppressErrors: true})

0 commit comments

Comments
 (0)