fix docs and spec

This commit is contained in:
deepak1556 2016-05-08 01:31:04 +05:30
parent 0f2ae385ed
commit 9c71c9fa6a
3 changed files with 15 additions and 7 deletions

View file

@ -841,6 +841,12 @@ describe('protocol module', function () {
})
})
it('throws when called after ready event', function () {
assert.throws(function () {
protocol.registerStandardSchemes(['some-scheme'])
}, 'protocol.registerStandardSchemes should be called before app is ready')
})
it('resolves relative resources', function (done) {
var handler = function (request, callback) {
if (request.url === imageURL) {