Add spec for read/write find text

This commit is contained in:
Kevin Sawicki 2016-10-25 13:59:04 +09:00
parent 1718697ef0
commit 1c3b5835f4
2 changed files with 10 additions and 1 deletions

View file

@ -84,4 +84,13 @@ describe('clipboard module', function () {
}
})
})
describe('clipboard.read/writeFindText(text)', function () {
it('reads and write text to the find pasteboard', function () {
if (process.platform !== 'darwin') return this.skip()
clipboard.writeFindText('find this')
assert.equal(clipboard.readFindText(), 'find this')
})
})
})