Skip to content

Commit c3d4605

Browse files
testing
1 parent fdf8b2a commit c3d4605

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.travis.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,11 @@ node_js:
55
install:
66
- npm install
77
script:
8-
- npm test
8+
- npm test
9+
env:
10+
- DV_HOST=127.0.0.1
11+
- DB_USER=root
12+
- DB_PASSWORD=
13+
- DB_DATABASE=koa_vue_notes_testing
14+
before_script:
15+
- mysql -u root -e 'CREATE DATABASE koa_vue_notes_testing;'

tests/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import db from '../src/db/db'
3030
it('returns homepage', async () => {
3131
expect.assertions(1)
3232
const response = await request.get('/')
33-
return expect(response.status).resolves.toBe(200)
33+
expect(response.status).toBe(200)
3434
});
3535
// });
3636

0 commit comments

Comments
 (0)