Skip to content

Commit 13a3f1e

Browse files
test: fix
1 parent 99f63fb commit 13a3f1e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/SyncAsyncFileSystemDecorator.test.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ describe("SyncAsyncFileSystemDecorator stat", function () {
1414
expect(error).toBeNull();
1515
expect(result).toHaveProperty("size");
1616
expect(result).toHaveProperty("birthtime");
17-
expect(typeof result.size).toEqual("bigint");
17+
expect(
18+
typeof (/** @type {import("fs").BigIntStats} */ (result).size)
19+
).toEqual("bigint");
1820
done();
1921
}
2022
);
@@ -28,7 +30,9 @@ describe("SyncAsyncFileSystemDecorator stat", function () {
2830
expect(error).toBeNull();
2931
expect(result).toHaveProperty("size");
3032
expect(result).toHaveProperty("birthtime");
31-
expect(typeof result.size).toEqual("number");
33+
expect(
34+
typeof (/** @type {import("fs").Stats} */ (result).size)
35+
).toEqual("number");
3236
done();
3337
}
3438
);

0 commit comments

Comments
 (0)