File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11import { Controller } from 'egg' ;
22
33export default class AppController extends Controller {
4- public async index ( ) {
4+ public index ( ) {
55 try {
66 throw new Error ( 'some err' ) ;
77 } catch ( err ) {
Original file line number Diff line number Diff line change 11import { Controller } from 'egg' ;
22
33export default class AppController extends Controller {
4- public async index ( ) {
4+ public index ( ) {
55 try {
66 throw new Error ( 'some err' ) ;
77 } catch ( err ) {
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ describe('test/ts.test.js', () => {
3333 } ) ;
3434
3535 afterEach ( function * ( ) {
36- app . proc . kill ( 'SIGTERM' ) ;
36+ app && app . proc . kill ( 'SIGTERM' ) ;
3737 yield utils . cleanup ( fixturePath ) ;
3838 } ) ;
3939
@@ -90,7 +90,7 @@ describe('test/ts.test.js', () => {
9090 } ) ;
9191
9292 afterEach ( function * ( ) {
93- app . proc . kill ( 'SIGTERM' ) ;
93+ app && app . proc . kill ( 'SIGTERM' ) ;
9494 yield utils . cleanup ( fixturePath ) ;
9595 } ) ;
9696
You can’t perform that action at this time.
0 commit comments