diff --git a/spec/api-deprecations-spec.js b/spec/api-deprecations-spec.js index 4d78856ebae5..5b618ac90165 100644 --- a/spec/api-deprecations-spec.js +++ b/spec/api-deprecations-spec.js @@ -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/) }) })