Add explicit call to deprecate.log
This commit is contained in:
parent
30b60516fe
commit
722a07de86
1 changed files with 2 additions and 2 deletions
|
@ -14,9 +14,9 @@ describe('deprecations', function () {
|
|||
messages.push(message)
|
||||
})
|
||||
|
||||
require('electron').webFrame.registerUrlSchemeAsSecure('some-scheme')
|
||||
require('electron').deprecate.log('this is deprecated')
|
||||
|
||||
assert.deepEqual(messages, ['registerUrlSchemeAsSecure is deprecated. Use registerURLSchemeAsSecure instead.'])
|
||||
assert.deepEqual(messages, ['this is deprecated'])
|
||||
})
|
||||
|
||||
it('throws an exception if no deprecation handler is specified', function () {
|
||||
|
|
Loading…
Reference in a new issue