Skip to content

Commit

Permalink
Refactored tests for useProfile()
Browse files Browse the repository at this point in the history
  • Loading branch information
harikishen committed Jun 20, 2017
1 parent ac9a6b2 commit 232e1e5
Show file tree
Hide file tree
Showing 2 changed files with 193 additions and 180 deletions.
4 changes: 2 additions & 2 deletions src/firefox/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ export type UseProfileParams = {
createProfileFinder?: typeof defaultCreateProfileFinder,
};

export function defaultCreateProfileFinder() {
const finder = new FirefoxProfile.Finder();
export function defaultCreateProfileFinder(userDirectoryPath: string = '') {
const finder = new FirefoxProfile.Finder(userDirectoryPath);
const readProfiles = promisify(finder.readProfiles, finder);
return {
getPath: promisify(finder.getPath, finder),
Expand Down
Loading

0 comments on commit 232e1e5

Please sign in to comment.