Skip to content

Commit 989308d

Browse files
committed
updated helloWorld tests
1 parent c68827a commit 989308d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dist/test/helloWorld.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ chai.use(chaiHttp);
66
const expect = chai.expect;
77
describe('baseRoute', () => {
88
it('should be json', () => {
9-
chai.request(App_1.default).get('/')
9+
return chai.request(App_1.default).get('/')
1010
.then(res => {
1111
expect(res.type).to.eql('application/json');
1212
});
1313
});
1414
it('should have a message prop', () => {
15-
chai.request(App_1.default).get('/')
15+
return chai.request(App_1.default).get('/')
1616
.then(res => {
1717
expect(res.body.message).to.eql('Hello World!');
1818
});

test/helloWorld.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ const expect = chai.expect;
1010
describe('baseRoute', () => {
1111

1212
it('should be json', () => {
13-
chai.request(app).get('/')
13+
return chai.request(app).get('/')
1414
.then(res => {
1515
expect(res.type).to.eql('application/json');
1616
});
1717
});
1818

1919
it('should have a message prop', () => {
20-
chai.request(app).get('/')
20+
return chai.request(app).get('/')
2121
.then(res => {
2222
expect(res.body.message).to.eql('Hello World!');
2323
});

0 commit comments

Comments
 (0)