mirror of
https://gitlab.com/RemixDev/deemix-gui.git
synced 2024-12-29 11:06:13 +00:00
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)
|