Skip to content

Commit dcd5e47

Browse files
committed
unrelated
1 parent 5932490 commit dcd5e47

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/SignalR/clients/ts/signalr/src/HttpConnection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ export class HttpConnection implements IConnection {
322322
});
323323

324324
if (response.statusCode !== 200) {
325-
return Promise.reject(new Error(`Unexpected status code returned from negotiate ${response.statusCode}`));
325+
return Promise.reject(new Error(`Unexpected status code returned from negotiate '${response.statusCode}'`));
326326
}
327327

328328
const negotiateResponse = JSON.parse(response.content as string) as INegotiateResponse;

src/SignalR/clients/ts/signalr/tests/HttpConnection.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,9 @@ describe("HttpConnection", () => {
192192
const connection = new HttpConnection("http://tempuri.org", options);
193193
await expect(connection.start(TransferFormat.Text))
194194
.rejects
195-
.toThrow("Unexpected status code returned from negotiate 999");
195+
.toThrow("Unexpected status code returned from negotiate '999'");
196196
},
197-
"Failed to start the connection: Error: Unexpected status code returned from negotiate 999");
197+
"Failed to start the connection: Error: Unexpected status code returned from negotiate '999'");
198198
});
199199

200200
it("all transport failure errors get aggregated", async () => {

0 commit comments

Comments
 (0)