Skip to content

Commit c7ab7d5

Browse files
committed
test: fix error usage of expect method
1 parent f1864f3 commit c7ab7d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/FPUser.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ test("user init", (done) => {
66
expect(user.getKey() != undefined);
77
setTimeout(() => {
88
const key2 = user.getKey();
9-
expect(key == key2);
9+
expect(key).toBe(key2);
1010
done();
1111
}, 10);
1212
});
@@ -20,12 +20,12 @@ test("user attr", () => {
2020
test("user attrs", () => {
2121
const attrs = { city: "1" };
2222
let user = new FPUser().extendAttrs(attrs);
23-
expect(user.getAttrs() == attrs);
23+
expect(user.getAttrs()).toBe(attrs);
2424
});
2525

2626
test("user stable key", () => {
2727
let user = new FPUser();
2828
let stableKey = "12jofjaewf";
2929
user.stableRollout(stableKey);
30-
expect(user.getKey() == stableKey);
30+
expect(user.getKey()).toBe(stableKey);
3131
});

0 commit comments

Comments
 (0)