Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
developit committed Jun 20, 2020
1 parent e6f3004 commit 2095946
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ karmatic '**/*Spec.jsx?'
Filename to be used to save Chrome preferences between test runs. Useful for debugging tests. It is recommended to also add this filename to `.gitignore`.

Example:

```
karmatic --chromeDataDir .chrome
```
Expand Down
5 changes: 4 additions & 1 deletion src/configure.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const WEBPACK_MAJOR = parseInt(WEBPACK_VERSION.split('.')[0], 10);
* @param {Boolean} [options.coverage=false] - Instrument and collect code coverage statistics
* @param {Object} [options.webpackConfig] - Custom webpack configuration
* @param {Boolean} [options.downlevel=false] - Downlevel/transpile syntax to ES5
* @param {string} [options.chromeDataDir] - Use a custom Chrome profile directory
*/
export default function configure(options) {
let cwd = process.cwd(),
Expand Down Expand Up @@ -193,7 +194,9 @@ export default function configure(options) {
return Object.assign({}, configured || {}, value);
}

const chromeDataDir = options.chromeDataDir ? path.resolve(cwd, options.chromeDataDir) : null;
const chromeDataDir = options.chromeDataDir
? path.resolve(cwd, options.chromeDataDir)
: null;

const flags = ['--no-sandbox'];

Expand Down

0 comments on commit 2095946

Please # to comment.