From 358bf1bf69104e38cfd0cf7f7d893c7b003dcd95 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Fri, 24 Jun 2016 15:10:32 -0700 Subject: [PATCH] Add read/writeBookmark spec --- spec/api-clipboard-spec.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/spec/api-clipboard-spec.js b/spec/api-clipboard-spec.js index 344e014..1c3682b 100644 --- a/spec/api-clipboard-spec.js +++ b/spec/api-clipboard-spec.js @@ -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' -- 2.7.4