Skip to content

Commit

Permalink
test: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Mar 6, 2024
1 parent 99f63fb commit 13a3f1e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/SyncAsyncFileSystemDecorator.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ describe("SyncAsyncFileSystemDecorator stat", function () {
expect(error).toBeNull();
expect(result).toHaveProperty("size");
expect(result).toHaveProperty("birthtime");
expect(typeof result.size).toEqual("bigint");
expect(
typeof (/** @type {import("fs").BigIntStats} */ (result).size)
).toEqual("bigint");
done();
}
);
Expand All @@ -28,7 +30,9 @@ describe("SyncAsyncFileSystemDecorator stat", function () {
expect(error).toBeNull();
expect(result).toHaveProperty("size");
expect(result).toHaveProperty("birthtime");
expect(typeof result.size).toEqual("number");
expect(
typeof (/** @type {import("fs").Stats} */ (result).size)
).toEqual("number");
done();
}
);
Expand Down

0 comments on commit 13a3f1e

Please sign in to comment.