deemixer/server/tests/utils.ts

10 lines
369 B
TypeScript
Raw Permalink Normal View History

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)