mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Sketch a test to expose #49
This commit is contained in:
parent
eaef67fad3
commit
f15fb0bb1f
18
src/graphql-schema.test.js
Normal file
18
src/graphql-schema.test.js
Normal file
@ -0,0 +1,18 @@
|
||||
describe('login', () => {
|
||||
describe('asking for a `token`', () => {
|
||||
describe('with valid email/password combination', () => {
|
||||
xit('responds with a JWT token', () => {})
|
||||
})
|
||||
|
||||
describe('with a valid email but incorrect password', () => {
|
||||
beforeEach(() => {
|
||||
// create a user in the database
|
||||
})
|
||||
xit('responds with "Wrong email/password combination"', () => {})
|
||||
})
|
||||
|
||||
describe('with a non-existing email', () => {
|
||||
xit('responds with "Wrong email/password combination"', () => {})
|
||||
})
|
||||
})
|
||||
})
|
||||
Loading…
x
Reference in New Issue
Block a user