Skip to content

Commit

Permalink
skip less
Browse files Browse the repository at this point in the history
  • Loading branch information
Dane Springmeyer committed Dec 7, 2020
1 parent 834bbe0 commit dda7bdb
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions test/build.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,25 +273,25 @@ apps.forEach(function(app) {
});
});
});

test(app.name + ' builds ' + app.args, function(t) {
run('node-pre-gyp', 'rebuild', '--fallback-to-build --loglevel=error', app, {}, function(err,stdout,stderr) {
t.ifError(err);
if (process.platform !== 'win32') {
if (app.args.indexOf('--debug') > -1) {
t.stringContains(stdout,'Debug/'+app.name+'.node');
} else {
t.stringContains(stdout,'Release/'+app.name+'.node');
}
}
t.end();
});
});
} else {
// Skipping since this support broke upstream in node-gyp: https://github.com/nodejs/node-gyp/pull/1616
test.skip(app.name + ' builds with unparsed options ' + app.args, function() {});
}

test(app.name + ' builds ' + app.args, function(t) {
run('node-pre-gyp', 'rebuild', '--fallback-to-build --loglevel=error', app, {}, function(err,stdout,stderr) {
t.ifError(err);
if (process.platform !== 'win32') {
if (app.args.indexOf('--debug') > -1) {
t.stringContains(stdout,'Debug/'+app.name+'.node');
} else {
t.stringContains(stdout,'Release/'+app.name+'.node');
}
}
t.end();
});
});

test(app.name + ' is found ' + app.args, function(t) {
run('node-pre-gyp', 'reveal', 'module_path --silent', app, {}, function(err,stdout,stderr) {
t.ifError(err);
Expand Down

0 comments on commit dda7bdb

Please sign in to comment.