Add assertions for no available bookmark
This commit is contained in:
parent
6588b85ac9
commit
5fbba2d27b
1 changed files with 7 additions and 1 deletions
|
@ -46,7 +46,13 @@ describe('clipboard module', function () {
|
|||
clipboard.writeBookmark('a title', 'http://electron.atom.io')
|
||||
assert.deepEqual(clipboard.readBookmark(), {
|
||||
title: 'a title',
|
||||
url: 'https://electron.atom.io'
|
||||
url: 'http://electron.atom.io'
|
||||
})
|
||||
|
||||
clipboard.writeText('no bookmark')
|
||||
assert.deepEqual(clipboard.readBookmark(), {
|
||||
title: '',
|
||||
url: ''
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue