Skip to content

Commit

Permalink
test: --firefox-binary and --firefox is treated the same way by the r…
Browse files Browse the repository at this point in the history
…un handler
  • Loading branch information
shubheksha committed Sep 30, 2016
1 parent 21cdf02 commit f631dc6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/unit/test.program.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ describe('program.main', () => {
process.cwd() + path.sep);
});
});

it('passes the path of a firefox binary when specified', () => {
const fakeCommands = fake(commands, {
run: () => Promise.resolve(),
Expand All @@ -316,7 +317,7 @@ describe('program.main', () => {
{commands: fakeCommands})
.then(() => {
assert.equal(fakeCommands.run.called, true);
assert.equal(fakeCommands.run.firstCall.args[0].firefoxBinary,
assert.equal(fakeCommands.run.firstCall.args[0].firefox,
'/path/to/firefox-binary');
});
});
Expand Down

0 comments on commit f631dc6

Please sign in to comment.