diff options
| author | Wes Bos <wesbos@gmail.com> | 2018-03-20 21:52:36 -0400 |
|---|---|---|
| committer | Wes Bos <wesbos@gmail.com> | 2018-03-20 21:52:36 -0400 |
| commit | 93495ce146c4e81ecfab3a0bca99460e75a759da (patch) | |
| tree | 12b2de283a017ff6cc53c1175371f9add84238d2 /backend/__tests__/user.test.js | |
| parent | 92f612a995c54f7423bd2b760fb1a324044693a6 (diff) | |
tests
Diffstat (limited to 'backend/__tests__/user.test.js')
| -rw-r--r-- | backend/__tests__/user.test.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/backend/__tests__/user.test.js b/backend/__tests__/user.test.js new file mode 100644 index 0000000..bedca3f --- /dev/null +++ b/backend/__tests__/user.test.js @@ -0,0 +1,26 @@ +const { request } = require('graphql-request'); +const createServer = require('../src/createServer'); + +import { SIGNUP_MUTATION } from '../../frontend/queries/index'; + +console.log(SIGNUP_MUTATION); + +let server; +const port = 2342; +const endpoint = `http://localhost:${port}`; + +beforeAll(async () => { + server = await createServer().start({ port }); +}); + +afterAll(async () => { + server.close(); +}); + +describe('User C.R.U.D. Operations', () => { + it('Creates a user', () => { + const query = ` + + `; + }); +}); |
