Commit a974a6a7 by xzyfer

Make the missing binding error message test more fault tolerant

These specs would use the local environment for `SASS_BINARY_NAME`.
This means in the local environment wasn't supported these specs
would fail unexpectedly. This doesn't play well with the node-citgm
because these specs would fail anytime the module version was bumped.
parent aec7049b
......@@ -1850,19 +1850,8 @@ describe('api', function() {
});
describe('missing error', function() {
beforeEach(function() {
process.env.SASS_BINARY_NAME = [
(process.platform === 'win32' ? 'Linux' : 'Windows'), '-',
process.arch, '-',
process.versions.modules
].join('');
});
afterEach(function() {
delete process.env.SASS_BINARY_NAME;
});
it('should be useful', function() {
process.env.SASS_BINARY_NAME = 'Linux-x64-48';
assert.throws(
function() { require(sassPath); },
new RegExp('Missing binding.*?\\' + path.sep + 'vendor\\' + path.sep)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment