deemixer/server/tests/utils.ts
2021-05-11 21:09:00 +02:00

10 lines
369 B
TypeScript

import { Application } from 'express'
import request from 'supertest'
import { app } from '../src/app'
export const sendGet = (app: Application) => (uri: string) => request(app).get(uri).send()
export const sendPost = (app: Application) => (uri: string) => request(app).post(uri).send()
export const appSendGet = sendGet(app)
export const appSendPost = sendPost(app)