fixing tests

This commit is contained in:
Martin McKeaveney 2020-07-16 15:37:05 +01:00
parent 4ca58ded5b
commit fe98d566eb
1 changed files with 2 additions and 2 deletions

View File

@ -16,9 +16,9 @@ const TEST_CLIENT_ID = "test-client-id"
exports.TEST_CLIENT_ID = TEST_CLIENT_ID
exports.supertest = async () => {
let request
let port = 4002
let server
server = await app(port)
process.env.PORT = 4002
server = require("../../../app")
request = supertest(server)
return { request, server }