Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions test/Assumption.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,6 @@ const IS_WIN = require("os").platform() === "win32";

const SUPPORTS_RECURSIVE_WATCHING = IS_OSX || IS_WIN;

function getNodeVersion() {
try {
return Number.parseInt(process.version.split(".")[0].replace("v", ""), 10);
} catch (_err) {
return 0;
}
}

const IS_NODE_VERSION_GT_24 = getNodeVersion() >= 24;

describe("Assumption", function assumptionTest() {
this.timeout(10000);
let watcherToClose = null;
Expand Down Expand Up @@ -353,15 +343,6 @@ describe("Assumption", function assumptionTest() {
});
}

if (IS_WIN) {
it("should return EINVAL when lstat a directory on Windows", (done) => {
fs.lstat("D:\\System Volume Information", (err) => {
err.code.should.be.equal(IS_NODE_VERSION_GT_24 ? "EINVAL" : "EPERM");
done();
});
});
}

for (const delay of [100, 200, 300, 500, 700, 1000].reverse()) {
// eslint-disable-next-line no-loop-func
it(`should fire events not after start and ${delay}ms delay`, (done) => {
Expand Down
Loading