mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Add assertions for no available bookmark
This commit is contained in:
@@ -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: ''
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user