Skip to content

Commit 9f9e888

Browse files
committed
fix: NaN check in user sign up test
1 parent 5c1b044 commit 9f9e888

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extensions/hooks/sign-up/test/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ describe('Sign-up hook', () => {
139139

140140
expect(payload.date_created).to.be.a('string');
141141
const parsedTimestamp = Date.parse(payload.date_created as string);
142-
expect(parsedTimestamp).to.not.equal(NaN);
142+
expect(Number.isNaN(parsedTimestamp)).to.equal(false);
143143
expect((parsedTimestamp - Date.now()) / 1000).to.be.lessThan(10);
144144
});
145145

0 commit comments

Comments
 (0)