Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
ci-test
Browse files Browse the repository at this point in the history
  • Loading branch information
am11 committed Mar 10, 2015
1 parent 172f49c commit 16a1e67
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/extensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ sass.getBinaryPath = function(throwIfNotExists) {
binaryPath = path.join(__dirname, '..', 'vendor', binaryNameSlug);
}

if (!fs.existsSync(binaryPath) && throwIfNotExists) {
if (!fs.existsSync(binaryPath) && throwIfNotExists) {console.log('entering',0);
throw new Error('`libsass` bindings not found. Try reinstalling `node-sass`?');
}

Expand Down
8 changes: 4 additions & 4 deletions test/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,13 @@ describe('api', function() {
var originalBin = process.sass.binaryPath,
renamedBin = [originalBin, '_moved'].join('');

assert.throws(function() {
fs.renameSync(originalBin, renamedBin);
process.sass.getBinaryPath(true);
assert.throws(function() {console.log('check',-1);
fs.renameSync(originalBin, renamedBin); console.log('check', 0);
process.sass.getBinaryPath(true); console.log('check', 1);
}, function(err) {
fs.renameSync(renamedBin, originalBin);

if ((err instanceof Error) && /`libsass` bindings not found. Try reinstalling `node-sass`?/.test(err)) {
if ((err instanceof Error) && /`libsass` bindings not found. Try reinstalling `node-sass`?/.test(err)) {console.log('entering',1);
done();
return true;
}
Expand Down

0 comments on commit 16a1e67

Please sign in to comment.