Add explicit call to deprecate.log

This commit is contained in:
Kevin Sawicki 2016-04-28 11:15:39 -07:00
parent 30b60516fe
commit 722a07de86

View file

@ -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 () {