Skip to content

Commit

Permalink
Adding tests for defaultCreateProfileFinder()
Browse files Browse the repository at this point in the history
  • Loading branch information
harikishen committed Jun 20, 2017
1 parent 232e1e5 commit fdff679
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions tests/unit/test-firefox/test.firefox.js
Original file line number Diff line number Diff line change
Expand Up @@ -782,10 +782,21 @@ describe('firefox', () => {

});

// describe('defaultRemotePortFinder', () => {
//
// it('resolves to an open port', () => {
// });
//
// });
describe('defaultCreateProfileFinder', () => {

it('gives a warning if no firefox profiles exist', () => withTempDir(
async (tmpDir) => {
try {
const profilesPath = tmpDir.path();
const profileFinder = firefox.defaultCreateProfileFinder(
profilesPath);
const profileExists = await profileFinder.hasProfileName('test');
assert.equal(profileExists, false);
} catch (e) {
throw e;
}
}
));

});
});

0 comments on commit fdff679

Please sign in to comment.