Skip to content

Commit 17ca45e

Browse files
committed
Fix errors raised by lint upgrade
1 parent ed00665 commit 17ca45e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Socket.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ describe("Socket", () => {
155155
eventHandlers.end();
156156

157157
await wait();
158-
expect(data).not.toBeUndefined();
158+
expect(data).toBeDefined();
159159
});
160160

161161
it("should resolve data when the socket close event is fired and the instance is of kind client", async () => {
@@ -181,7 +181,7 @@ describe("Socket", () => {
181181
eventHandlers.close();
182182

183183
await wait();
184-
expect(data).not.toBeUndefined();
184+
expect(data).toBeDefined();
185185
});
186186

187187
it("should reject if the data could not be properly decoded", async () => {

src/utils.spec.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ describe("utils", () => {
2525

2626
describe("encode", () => {
2727
it("should transform a JSON serializable object into a base64 string", () => {
28-
expect(utils.encode({ hello: "world" })).toStrictEqual("eyJoZWxsbyI6IndvcmxkIn0=");
28+
expect(utils.encode({ hello: "world" })).toBe("eyJoZWxsbyI6IndvcmxkIn0=");
2929
});
3030
});
3131

@@ -60,7 +60,7 @@ describe("utils", () => {
6060

6161
eventHandlers.end();
6262

63-
expect(await resultPromise).toStrictEqual("");
63+
expect(await resultPromise).toBe("");
6464
});
6565

6666
it("should return a concatenated string of non-null values read from stdin", async () => {
@@ -73,7 +73,7 @@ describe("utils", () => {
7373

7474
eventHandlers.end();
7575

76-
expect(await resultPromise).toStrictEqual("hello2world");
76+
expect(await resultPromise).toBe("hello2world");
7777
});
7878
});
7979

0 commit comments

Comments
 (0)