add done on async test

This commit is contained in:
kachulio1 2019-01-03 20:52:47 +03:00
parent 3a9cb31e1f
commit e1070e15f2
2 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@
"lint": "eslint src --config .eslintrc.js",
"test": "nyc --reporter=text-lcov yarn run test:jest",
"test:jest": "$npm_package_config_no_auth run-p --race start test:cmd:jest",
"test:cmd:jest": "jest",
"test:cmd:jest": "jest --forceExit",
"test:coverage": "nyc report --reporter=text-lcov > coverage.lcov",
"db:script:seed": "wait-on tcp:4001 && babel-node src/seed/seed-db.js",
"db:script:reset": "wait-on tcp:4001 && babel-node src/seed/reset-db.js",

View File

@ -71,7 +71,7 @@ describe.only('login', () => {
})
describe('with a non-existing email', () => {
it('responds with "Incorrect email address or password."', async (doen) => {
it('responds with "Incorrect email address or password."', async (done) => {
try {
await request(getHost(), mutation({ email: 'non-existent@example.org', password: 'wrong' }))
} catch (error) {