electron/spec/api-clipboard-spec.coffee

10 lines
313 B
CoffeeScript
Raw Normal View History

assert = require 'assert'
clipboard = require 'clipboard'
describe 'clipboard module', ->
describe 'clipboard.readText()', ->
it 'returns unicode string correctly', ->
text = '千江有水千江月,万里无云万里天'
clipboard.writeText text
assert.equal clipboard.readText(), text