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

Commit 16a1e67

Browse files
committed
ci-test
1 parent 172f49c commit 16a1e67

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

lib/extensions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ sass.getBinaryPath = function(throwIfNotExists) {
123123
binaryPath = path.join(__dirname, '..', 'vendor', binaryNameSlug);
124124
}
125125

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

test/api.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,13 @@ describe('api', function() {
107107
var originalBin = process.sass.binaryPath,
108108
renamedBin = [originalBin, '_moved'].join('');
109109

110-
assert.throws(function() {
111-
fs.renameSync(originalBin, renamedBin);
112-
process.sass.getBinaryPath(true);
110+
assert.throws(function() {console.log('check',-1);
111+
fs.renameSync(originalBin, renamedBin); console.log('check', 0);
112+
process.sass.getBinaryPath(true); console.log('check', 1);
113113
}, function(err) {
114114
fs.renameSync(renamedBin, originalBin);
115115

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

0 commit comments

Comments
 (0)