Add spec for protocol.isHandledProtocol.
This commit is contained in:
parent
261f50701a
commit
c2fd43c3e8
1 changed files with 7 additions and 0 deletions
|
@ -70,3 +70,10 @@ describe 'protocol API', ->
|
||||||
error: (xhr, errorType, error) ->
|
error: (xhr, errorType, error) ->
|
||||||
assert false, 'Got error: ' + errorType + ' ' + error
|
assert false, 'Got error: ' + errorType + ' ' + error
|
||||||
protocol.unregisterProtocol 'atom-file-job'
|
protocol.unregisterProtocol 'atom-file-job'
|
||||||
|
|
||||||
|
describe 'protocol.isHandledProtocol', ->
|
||||||
|
it 'returns true if the scheme can be handled', (done) ->
|
||||||
|
assert.equal protocol.isHandledProtocol('file'), true
|
||||||
|
assert.equal protocol.isHandledProtocol('http'), true
|
||||||
|
assert.equal protocol.isHandledProtocol('https'), true
|
||||||
|
assert.equal protocol.isHandledProtocol('atom'), false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue