10 lines
369 B
TypeScript
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)
|