Skip to content

Commit

Permalink
better test script
Browse files Browse the repository at this point in the history
  • Loading branch information
fscherwi authored and fscherwi committed Dec 31, 2015
1 parent c735b1a commit aed2cbb
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions test.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
var osx_version = require('./main.js').get();
if (process.platform === 'darwin') {
console.log('\nOSX version: %s\n', osx_version);
} else {
var osx_version = require('./main.js').get(); /* istanbul ignore next */
if (process.platform !== 'darwin') {
if (osx_version !== 'no OSX system') {
console.log('ERROR');
process.exit(1);
} else {
console.log('\nOSX version: %s\n', osx_version);
}
}
console.log('\nOSX version: %s\n', osx_version);

0 comments on commit aed2cbb

Please sign in to comment.