From f15fb0bb1f6365b710398a9d35130ff0244eff99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=A4fer?= Date: Thu, 20 Dec 2018 18:01:55 +0100 Subject: [PATCH] Sketch a test to expose #49 --- src/graphql-schema.test.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/graphql-schema.test.js diff --git a/src/graphql-schema.test.js b/src/graphql-schema.test.js new file mode 100644 index 000000000..f81c919de --- /dev/null +++ b/src/graphql-schema.test.js @@ -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"', () => {}) + }) + }) +})