Skip to content

Commit

Permalink
test(generic): only skip help spec on Windows (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
malept authored Dec 18, 2016
1 parent d20387b commit 202987e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/cli_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,12 @@ const pSpawn = async (args = [], opts = {
const installer = process.argv.find(arg => arg.startsWith('--installer=')) || '--installer=system default';

describe(`electron-forge CLI (with installer=${installer.substr(12)})`, () => {
it.skip('should output help', async () => {
expect(await pSpawn(['--help'])).to.contain('Usage: electron-forge [options] [command]');
it('should output help', async function helpSpec() {
if (process.platform === 'win32') {
this.skip();
} else {
expect(await pSpawn(['--help'])).to.contain('Usage: electron-forge [options] [command]');
}
});

let dirID = Date.now();
Expand Down

0 comments on commit 202987e

Please sign in to comment.