deemixer/server/src/tests/utils.ts

10 lines
365 B
TypeScript
Raw Normal View History

import { Application } from 'express'
import request from 'supertest'
import { app } from '../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)