Return unicode string in clipboard.readText(), fixes atom/atom#2145.
This commit is contained in:
parent
ac1a03bf9c
commit
7c14c2758b
2 changed files with 13 additions and 3 deletions
9
spec/api-clipboard-spec.coffee
Normal file
9
spec/api-clipboard-spec.coffee
Normal file
|
@ -0,0 +1,9 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue