Test no handler via call to deprecate.log
This commit is contained in:
parent
722a07de86
commit
0eefb282ca
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ describe('deprecations', function () {
|
||||||
|
|
||||||
it('throws an exception if no deprecation handler is specified', function () {
|
it('throws an exception if no deprecation handler is specified', function () {
|
||||||
assert.throws(function () {
|
assert.throws(function () {
|
||||||
require('electron').webFrame.registerUrlSchemeAsPrivileged('some-scheme')
|
require('electron').deprecate.log('this is deprecated')
|
||||||
}, 'registerUrlSchemeAsPrivileged is deprecated. Use registerURLSchemeAsPrivileged instead.')
|
}, /this is deprecated/)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue