Skip to content

Commit

Permalink
chore(docs): explain code change
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushmanchhabra committed Apr 27, 2024
1 parent 5236291 commit 2f7bbab
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"scripts": {
"postinstall": "node src/postinstall.js",
"test": "vitest run",
"demo": "nw ./test/app --user-data-dir=./test/fixture/my-user-data"
"demo": "nw ./test/app --log-level=verbose"
},
"files": [
"bin",
Expand Down
2 changes: 1 addition & 1 deletion src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async function cli() {
.option('--platform <platform>', 'Host platform')
.option('--arch <arch>', 'Host architecture')
.option('--cacheDir <cacheDir>', 'File path to cache directory')
.allowUnknownOption()
.allowUnknownOption() // this allows chromium and node options to be passed through to the nwjs binary
.parse(process.argv);

let options = program.opts();
Expand Down
8 changes: 4 additions & 4 deletions test/findpath.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import { expect, test } from 'vitest';
import util from '../src/util.js';

test('nwjs has downloaded and been extracted', function () {
util.findpath('nwjs').then(function (path) {
util.findpath('nwjs', { flavor: 'sdk' }).then(function (path) {
expect(fs.existsSync(path)).toEqual(true);
})
.catch((error) => {
console.log(error);
});
.catch((error) => {
console.log(error);
});
});

0 comments on commit 2f7bbab

Please sign in to comment.