Skip to content

Commit a388e3a

Browse files
committed
unrelated
1 parent 4fac562 commit a388e3a

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
@@ -321,7 +321,7 @@ export class HttpConnection implements IConnection {
321321
});
322322

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

327327
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
@@ -191,9 +191,9 @@ describe("HttpConnection", () => {
191191
const connection = new HttpConnection("http://tempuri.org", options);
192192
await expect(connection.start(TransferFormat.Text))
193193
.rejects
194-
.toThrow("Unexpected status code returned from negotiate 999");
194+
.toThrow("Unexpected status code returned from negotiate '999'");
195195
},
196-
"Failed to start the connection: Error: Unexpected status code returned from negotiate 999");
196+
"Failed to start the connection: Error: Unexpected status code returned from negotiate '999'");
197197
});
198198

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

0 commit comments

Comments
 (0)