modify test

This commit is contained in:
Erik 2016-02-16 14:27:18 -05:00
parent f7397155b6
commit 6ac96f8d91

View File

@ -38,8 +38,8 @@ class SocketBasicPacketTest: XCTestCase {
}
func testStringEmitWithQuotes() {
let expectedSendString = "2[\"test\",\"\\\"hello world\\\"\"]"
let sendData = ["test", "\"hello world\""]
let expectedSendString = "2[\"test\",\"\\\"he\\\"llo world\\\"\"]"
let sendData = ["test", "\"he\"llo world\""]
let packet = SocketPacket.packetFromEmit(sendData, id: -1, nsp: "/", ack: false)
XCTAssertEqual(packet.packetString, expectedSendString)