Commit 728e00e5 authored by Jure's avatar Jure
Browse files

Merge branch 'remove-unused-test-helpers' into 'master'

Remove unused test helper files

See merge request !99
parents ad88d095 8023033a
Pipeline #2259 failed with stage
in 2 minutes and 12 seconds
const request = require('supertest')
const api = require('../src')()
const STATUS = require('http-status-codes')
module.exports = user => {
return request(
api
).post(
'/api/users/authenticate'
).send(
user
).expect(
STATUS.CREATED
).then(
res => res.body.token
)
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment