Add read/writeBookmark spec

This commit is contained in:
Kevin Sawicki 2016-06-24 15:10:32 -07:00
parent 271808b278
commit 358bf1bf69

View file

@ -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'