☕️ Classic, reliable, trusted test framework for Node.js and the browser
only run test on non-windws
Craig Taubf9c650c34455
diff --git a/test/integration/options.spec.js b/test/integration/options.spec.jsindex d7d5e788..14035e05 100644--- a/test/integration/options.spec.js+++ b/test/integration/options.spec.js@@ -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@@ -536,8 +534,8 @@ describe('options', function() {// kill the child processmocha.kill('SIGINT');}, 500);- }+ });});});- });+ }});