Skip to content

Commit 2095946

Browse files
committed
lint fixes
1 parent e6f3004 commit 2095946

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ karmatic '**/*Spec.jsx?'
4646
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`.
4747

4848
Example:
49+
4950
```
5051
karmatic --chromeDataDir .chrome
5152
```

src/configure.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const WEBPACK_MAJOR = parseInt(WEBPACK_VERSION.split('.')[0], 10);
1919
* @param {Boolean} [options.coverage=false] - Instrument and collect code coverage statistics
2020
* @param {Object} [options.webpackConfig] - Custom webpack configuration
2121
* @param {Boolean} [options.downlevel=false] - Downlevel/transpile syntax to ES5
22+
* @param {string} [options.chromeDataDir] - Use a custom Chrome profile directory
2223
*/
2324
export default function configure(options) {
2425
let cwd = process.cwd(),
@@ -193,7 +194,9 @@ export default function configure(options) {
193194
return Object.assign({}, configured || {}, value);
194195
}
195196

196-
const chromeDataDir = options.chromeDataDir ? path.resolve(cwd, options.chromeDataDir) : null;
197+
const chromeDataDir = options.chromeDataDir
198+
? path.resolve(cwd, options.chromeDataDir)
199+
: null;
197200

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

0 commit comments

Comments
 (0)