File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 "debug" : " egg-bin debug -r egg-ts-helper/register" ,
1313 "test-local" : " egg-bin test -r egg-ts-helper/register" ,
1414 "test" : " npm run lint -- --fix && npm run test-local" ,
15- "cov" : " egg-bin cov" ,
15+ "cov" : " egg-bin cov -r egg-ts-helper/register " ,
1616 "tsc" : " ets && tsc -p tsconfig.json" ,
17- "ci" : " npm run lint && npm run tsc && egg-bin cov --no-ts " ,
17+ "ci" : " npm run lint && npm run cov && npm run tsc " ,
1818 "autod" : " autod" ,
1919 "lint" : " tslint ." ,
2020 "clean" : " ets clean"
3636 "egg-bin" : " ^4.6.2" ,
3737 "egg-mock" : " ^3.16.0" ,
3838 "egg-ts-helper" : " ^1.4.2" ,
39- "rimraf" : " ^2.6.1" ,
40- "tslib" : " ^1.8.1" ,
39+ "tslib" : " ^1.9.0" ,
4140 "tslint" : " ^4.0.0" ,
4241 "typescript" : " ^2.8.1"
4342 },
Original file line number Diff line number Diff line change 11'use strict' ;
22
3+ import * as assert from 'assert' ;
34import { Context } from 'egg' ;
4- import { app , assert } from 'egg-mock/bootstrap' ;
5+ import { app } from 'egg-mock/bootstrap' ;
56
67describe ( 'test/app/service/News.test.js' , ( ) => {
78 let ctx : Context ;
89
9- before ( async ( ) => {
10+ before ( ( ) => {
1011 ctx = app . mockContext ( ) ;
1112 } ) ;
1213
You can’t perform that action at this time.
0 commit comments