aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js/socket/socket.test.ts
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-01-31 17:55:16 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-01-31 17:55:16 -0800
commitcc4326cd829decc95d1f1f23998f97705637e04b (patch)
tree9ccaa829b6d48af521d5e5fcdbabc0dac8d186af /test/bun.js/socket/socket.test.ts
parentc57b37d29f9d04780c7f7917789cf8b424710d23 (diff)
downloadbun-cc4326cd829decc95d1f1f23998f97705637e04b.tar.gz
bun-cc4326cd829decc95d1f1f23998f97705637e04b.tar.zst
bun-cc4326cd829decc95d1f1f23998f97705637e04b.zip
Re-run prettier after changes
Diffstat (limited to 'test/bun.js/socket/socket.test.ts')
-rw-r--r--test/bun.js/socket/socket.test.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/bun.js/socket/socket.test.ts b/test/bun.js/socket/socket.test.ts
index 3c41c96f7..f7240bf72 100644
--- a/test/bun.js/socket/socket.test.ts
+++ b/test/bun.js/socket/socket.test.ts
@@ -45,7 +45,7 @@ it("listen() should throw connection error for invalid host", () => {
}).toThrow();
});
-it("should reject on connection error, calling both connectError() and rejecting the promise", (done) => {
+it("should reject on connection error, calling both connectError() and rejecting the promise", done => {
var data = {};
connect({
data,
@@ -80,7 +80,7 @@ it("should reject on connection error, calling both connectError() and rejecting
},
}).then(
() => done(new Error("Promise should reject instead")),
- (err) => {
+ err => {
expect(err).toBeDefined();
expect(err.name).toBe("SystemError");
expect(err.message).toBe("Failed to connect");
@@ -91,7 +91,7 @@ it("should reject on connection error, calling both connectError() and rejecting
});
// this also tests we mark the promise as handled if connectError() is called
-it("should handle connection error", (done) => {
+it("should handle connection error", done => {
var data = {};
connect({
data,