Skip to content

Commit 7fc805d

Browse files
committed
f
1 parent bddc8ca commit 7fc805d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

test/fixtures/ts-pkg/app/controller/home.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Controller } from 'egg';
22

33
export default class AppController extends Controller {
4-
public async index() {
4+
public index() {
55
try {
66
throw new Error('some err');
77
} catch (err) {

test/fixtures/ts/app/controller/home.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Controller } from 'egg';
22

33
export default class AppController extends Controller {
4-
public async index() {
4+
public index() {
55
try {
66
throw new Error('some err');
77
} catch (err) {

test/ts.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)