Add assertions for no available bookmark

This commit is contained in:
Kevin Sawicki 2016-06-24 15:32:52 -07:00
parent 6588b85ac9
commit 5fbba2d27b

View file

@ -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: ''
})
})
})