Skip to content

Commit

Permalink
test: fix doctools path on windows (#4090)
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 authored and atian25 committed Dec 9, 2019
1 parent 191d6c5 commit 2109505
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ platform:

install:
- ps: Install-Product node $env:nodejs_version $env:platform
- npm i npminstall && node_modules\.bin\npminstall
- npm i npminstall@4 && node_modules\.bin\npminstall

test_script:
- node --version
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@
"spy": "^1.0.0",
"supertest": "^3.4.2",
"ts-node": "^8.0.3",
"typescript": "^3.3.3333",
"webstorm-disable-index": "^1.1.2"
"typescript": "^3.3.3333"
},
"main": "index.js",
"types": "index.d.ts",
Expand Down
4 changes: 1 addition & 3 deletions test/doc.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ describe('test/doc.test.js', () => {
before(async () => {
const cwd = path.dirname(__dirname);
const doctools = path.join(cwd, 'node_modules', '.bin', 'doctools');
const cmd = `${doctools} build`;
console.log('Runing %j on %j', cmd, cwd);
await runscript(cmd, { cwd });
await runscript(`${doctools} build`, { cwd });
});
before(async () => {
app = utils.cluster({
Expand Down

0 comments on commit 2109505

Please sign in to comment.