Skip to content

Commit

Permalink
fix: lint & test failed
Browse files Browse the repository at this point in the history
  • Loading branch information
dev2geek committed Nov 8, 2018
1 parent 469d1cf commit 0a3fb74
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@
"start_build": "npm run build && NODE_ENV=development midway-bin dev",
"dev": "NODE_ENV=local midway-bin dev --ts",
"debug": "NODE_ENV=local midway-bin debug --ts",
"test": "npm run lint -- --fix && midway-bin test --ts",
"test": "npm run lint && midway-bin test --ts",
"cov": "midway-bin cov --ts",
"lint": "tslint -c tslint.json --project .",
"ci": "midway-bin cov --ts",
"ci": "npm run cov",
"build": "midway-bin build -c"
},
"ci": {
"version": "8, 9"
"version": "8, 10"
},
"repository": {
"type": "git",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ export = (appInfo: any) => {
'config',
'app.ts',
'agent.ts',
'interface.ts'
'interface.ts',
],
overrideDefault: true
overrideDefault: true,
};

return config;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('test/app/controller/home.test.ts', () => {
it('should GET /', () => {
return app.httpRequest()
.get('/')
.expect('hi, midway')
.expect('Welcome to midwayjs!')
.expect(200);
});
});
3 changes: 2 additions & 1 deletion packages/midway-init/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
],
"scripts": {
"lint": "eslint bin lib test",
"test": "npm run lint -- --fix && midway-bin test",
"lint-fix": "npm run lint -- --fix",
"test": "npm run lint && midway-bin test",
"cov": "midway-bin cov",
"ci": "npm run lint && midway-bin cov",
"autod": "autod"
Expand Down

0 comments on commit 0a3fb74

Please sign in to comment.