Test no handler via call to deprecate.log

This commit is contained in:
Kevin Sawicki 2016-04-28 11:17:03 -07:00
parent 722a07de86
commit 0eefb282ca

View file

@ -21,7 +21,7 @@ describe('deprecations', function () {
it('throws an exception if no deprecation handler is specified', function () {
assert.throws(function () {
require('electron').webFrame.registerUrlSchemeAsPrivileged('some-scheme')
}, 'registerUrlSchemeAsPrivileged is deprecated. Use registerURLSchemeAsPrivileged instead.')
require('electron').deprecate.log('this is deprecated')
}, /this is deprecated/)
})
})