Skip to content

Commit

Permalink
fix: firefox binary path not passed in the run method exported by 'sr…
Browse files Browse the repository at this point in the history
…c/firefox/index'.
  • Loading branch information
rpl committed Sep 6, 2016
1 parent c95991d commit 48bbd7b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/cmd/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,6 @@ export class ExtensionRunner {

run(profile: FirefoxProfile): Promise<FirefoxProcess> {
const {firefoxApp, firefox} = this;
return firefoxApp.run(profile, {firefox});
return firefoxApp.run(profile, {firefoxBinary: firefox || null});
}
}
4 changes: 2 additions & 2 deletions src/firefox/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export function defaultRemotePortFinder(
// Declare the needed 'fx-runner' module flow types.

export type FirefoxRunnerParams = {
binary?: string,
binary: ?string,
profile?: string,
'new-instance'?: boolean,
'no-remote'?: boolean,
Expand Down Expand Up @@ -105,7 +105,7 @@ export type FirefoxRunnerFn =
export type FirefoxRunOptions = {
fxRunner?: FirefoxRunnerFn,
findRemotePort?: RemotePortFinderFn,
firefoxBinary?: string,
firefoxBinary: ?string,
binaryArgs?: Array<string>,
};

Expand Down
2 changes: 1 addition & 1 deletion tests/test-cmd/test.run.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ describe('run', () => {

return cmd.run({firefox}).then(() => {
assert.equal(firefoxApp.run.called, true);
assert.equal(firefoxApp.run.firstCall.args[1].firefox,
assert.equal(firefoxApp.run.firstCall.args[1].firefoxBinary,
firefox);
});
});
Expand Down

0 comments on commit 48bbd7b

Please sign in to comment.