Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Commit

Permalink
only run test on non-windws
Browse files Browse the repository at this point in the history
  • Loading branch information
craigtaub authored and Bamieh committed Jun 23, 2018
1 parent da0515c commit 363415a
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions test/integration/options.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -505,14 +505,12 @@ describe('options', function() {
});
});

describe('--watch', function() {
describe('with watch enabled', function() {
it('should show the cursor and signal correct exit code, when watch process is terminated', function(done) {
if (process.platform === 'win32') {
// Windows: Feature works but SIMULATING the signal (ctr+c), via child process, does not work
// due to lack of *nix signal compliance.
done();
} else {
if (process.platform !== 'win32') {
// Windows: Feature works but SIMULATING the signal (ctr+c), via child process, does not work
// due to lack of *nix signal compliance.
describe('--watch', function() {
describe('with watch enabled', function() {
it('should show the cursor and signal correct exit code, when watch process is terminated', function(done) {
this.timeout(0);
this.slow(3000);
// executes Mocha in a subprocess
Expand All @@ -536,8 +534,8 @@ describe('options', function() {
// kill the child process
mocha.kill('SIGINT');
}, 500);
}
});
});
});
});
}
});

0 comments on commit 363415a

Please sign in to comment.