mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
add done on async test
This commit is contained in:
parent
3a9cb31e1f
commit
e1070e15f2
@ -12,9 +12,9 @@
|
|||||||
"dev": "nodemon --exec babel-node src/index.js",
|
"dev": "nodemon --exec babel-node src/index.js",
|
||||||
"dev:debug": "nodemon --exec babel-node --inspect=0.0.0.0:9229 src/index.js",
|
"dev:debug": "nodemon --exec babel-node --inspect=0.0.0.0:9229 src/index.js",
|
||||||
"lint": "eslint src --config .eslintrc.js",
|
"lint": "eslint src --config .eslintrc.js",
|
||||||
"test": "nyc --reporter=text-lcov yarn run test:jest",
|
"test": "nyc --reporter=text-lcov yarn run test:jest",
|
||||||
"test:jest": "$npm_package_config_no_auth run-p --race start test:cmd: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",
|
"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: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",
|
"db:script:reset": "wait-on tcp:4001 && babel-node src/seed/reset-db.js",
|
||||||
|
|||||||
@ -71,7 +71,7 @@ describe.only('login', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
describe('with a non-existing email', () => {
|
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 {
|
try {
|
||||||
await request(getHost(), mutation({ email: 'non-existent@example.org', password: 'wrong' }))
|
await request(getHost(), mutation({ email: 'non-existent@example.org', password: 'wrong' }))
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user