Skip to content

Commit aba7750

Browse files
committed
format
1 parent c7443ac commit aba7750

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

SoraTests/SignalingOfferTests.swift

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,25 @@ class SignalingOfferTests: XCTestCase {
1515
let json: String
1616
if simulcastRpcRids.isEmpty {
1717
json = """
18-
{
19-
"type": "offer",
20-
"client_id": "client123",
21-
"connection_id": "conn123",
22-
"sdp": "v=0\\r\\no=- 1 1 IN IP4 127.0.0.1\\r\\n",
23-
"simulcast_rpc_rids": []
24-
}
25-
"""
18+
{
19+
"type": "offer",
20+
"client_id": "client123",
21+
"connection_id": "conn123",
22+
"sdp": "v=0\\r\\no=- 1 1 IN IP4 127.0.0.1\\r\\n",
23+
"simulcast_rpc_rids": []
24+
}
25+
"""
2626
} else {
2727
let ridsJson = simulcastRpcRids.map { "\"\($0)\"" }.joined(separator: ", ")
2828
json = """
29-
{
30-
"type": "offer",
31-
"client_id": "client123",
32-
"connection_id": "conn123",
33-
"sdp": "v=0\\r\\no=- 1 1 IN IP4 127.0.0.1\\r\\n",
34-
"simulcast_rpc_rids": [\(ridsJson)]
35-
}
36-
"""
29+
{
30+
"type": "offer",
31+
"client_id": "client123",
32+
"connection_id": "conn123",
33+
"sdp": "v=0\\r\\no=- 1 1 IN IP4 127.0.0.1\\r\\n",
34+
"simulcast_rpc_rids": [\(ridsJson)]
35+
}
36+
"""
3737
}
3838

3939
let data = json.data(using: .utf8)!
@@ -50,13 +50,13 @@ class SignalingOfferTests: XCTestCase {
5050

5151
func testDecodeSimulcastRpcRidsNotPresent() throws {
5252
let json = """
53-
{
54-
"type": "offer",
55-
"client_id": "client123",
56-
"connection_id": "conn123",
57-
"sdp": "v=0\\r\\no=- 1 1 IN IP4 127.0.0.1\\r\\n"
58-
}
59-
"""
53+
{
54+
"type": "offer",
55+
"client_id": "client123",
56+
"connection_id": "conn123",
57+
"sdp": "v=0\\r\\no=- 1 1 IN IP4 127.0.0.1\\r\\n"
58+
}
59+
"""
6060
let data = json.data(using: .utf8)!
6161
let decoder = JSONDecoder()
6262
let offer = try decoder.decode(SignalingOffer.self, from: data)

0 commit comments

Comments
 (0)