Skip to content

Commit

Permalink
fix a test
Browse files Browse the repository at this point in the history
  • Loading branch information
nkzawa committed Sep 11, 2015
1 parent c647fea commit 38df10d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ describe('connection', function() {
it('should receive emoji', function(done) {
var socket = new eio.Socket();
socket.on('open', function () {
socket.send('\uD800-\uDB7F\uDB80-\uDBFF\uDC00-\uDFFF\uE000-\uF8FF');
socket.send('\uD800\uDC00-\uDB7F\uDFFF\uDB80\uDC00-\uDBFF\uDFFF\uE000-\uF8FF');
socket.on('message', function (data) {
if ('hi' == data) return;
expect(data).to.be('\uD800-\uDB7F\uDB80-\uDBFF\uDC00-\uDFFF\uE000-\uF8FF');
expect(data).to.be('\uD800\uDC00-\uDB7F\uDFFF\uDB80\uDC00-\uDBFF\uDFFF\uE000-\uF8FF');
socket.close();
done();
});
Expand Down

0 comments on commit 38df10d

Please sign in to comment.