Skip to content

Commit

Permalink
Remove tripwire dependency
Browse files Browse the repository at this point in the history
It doesn't support new Node versions
  • Loading branch information
xzyfer committed Jan 28, 2017
1 parent 50c21ea commit b40c729
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
3 changes: 1 addition & 2 deletions package.json
Expand Up @@ -30,7 +30,6 @@
},
"devDependencies": {
"glob": "^5.0.10",
"sass-spec": "^3.5.0-1",
"tripwire": "^0.10.0"
"sass-spec": "^3.5.0-1"
}
}
16 changes: 0 additions & 16 deletions test/sass-spec.js
Expand Up @@ -7,29 +7,13 @@
var fs = require('fs');
var path = require('path');
var glob = require('glob');
var tripwire = require('tripwire');
var spec = require('sass-spec');
var scss = require('../');

var timeout = 3000;
var contents, file, errorFile, i;
var fails = [];
var files = glob.sync(path.join(spec.dirname, 'spec/**/input.scss'));

// -----------------------------------------------------------------------------
// We use tripwire to detect a long running process. If the process runs too
// long we kill it and exit(1).
// -----------------------------------------------------------------------------

process.on('uncaughtException', function (e) {
if (undefined !== tripwire.getContext()) {
console.log('The event loop was blocked for longer than ' + timeout + ' milliseconds');
}
process.exit(1);
});

tripwire.resetTripwire(timeout, {});

// -----------------------------------------------------------------------------
// Tokenize sass-spec. The tokenizer have any error conditions.
// If an uncaught exception is thrown we report the failure to the user.
Expand Down

0 comments on commit b40c729

Please sign in to comment.