Skip to content

Commit cf635bf

Browse files
Fixed the isStats() utility function to work on all platforms and Node versions
1 parent c8b7ebb commit cf635bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/utils/is-stats.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ function isStats (stats) {
1414
expect(stats.atimeMs).to.be.a("number").above(0);
1515
expect(stats.birthtime).to.be.an.instanceOf(Date);
1616
expect(stats.birthtimeMs).to.be.a("number").above(0);
17-
expect(stats.blksize).to.be.a("number").above(0);
17+
expect(stats.blksize).to.be.a("number").at.least(0);
1818
expect(stats.blocks).to.be.a("number").at.least(0);
1919
expect(stats.ctime).to.be.an.instanceOf(Date);
2020
expect(stats.ctimeMs).to.be.a("number").above(0);
2121
expect(stats.depth).to.be.a("number").at.least(0);
22-
expect(stats.dev).to.be.a("number").above(0);
22+
expect(stats.dev).to.be.a("number").at.least(0);
2323
expect(stats.gid).to.be.a("number").at.least(0);
24-
expect(stats.ino).to.be.a("number").above(0);
24+
expect(stats.ino).to.be.a("number").at.least(0);
2525
expect(stats.mode).to.be.a("number").above(0);
2626
expect(stats.mtime).to.be.an.instanceOf(Date);
2727
expect(stats.mtimeMs).to.be.a("number").above(0);

0 commit comments

Comments
 (0)