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 () { 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/)
}) })
}) })