Add read/writeBookmark spec
This commit is contained in:
parent
271808b278
commit
358bf1bf69
1 changed files with 10 additions and 0 deletions
|
@ -41,6 +41,16 @@ describe('clipboard module', function () {
|
|||
})
|
||||
})
|
||||
|
||||
describe('clipboard.readBookmark', function () {
|
||||
it('returns title and url', function () {
|
||||
clipboard.writeBookmark('a title', 'http://electron.atom.io')
|
||||
assert.deepEqual(clipboard.readBookmark(), {
|
||||
title: 'a title',
|
||||
url: 'https://electron.atom.io'
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
describe('clipboard.write()', function () {
|
||||
it('returns data correctly', function () {
|
||||
var text = 'test'
|
||||
|
|
Loading…
Reference in a new issue