mirror of
https://github.com/certd/certd.git
synced 2026-04-16 05:50:50 +08:00
chore:
This commit is contained in:
@@ -4,14 +4,13 @@ import assert from 'assert';
|
||||
import { getApp } from '../setup.js';
|
||||
|
||||
describe('test/controller/home.test.ts', () => {
|
||||
|
||||
it('should POST /api/get_user', async function (this: any) {
|
||||
const app: Application = getApp();
|
||||
// make request
|
||||
const result = await createHttpRequest(app).get('/api/get_user').query({ uid: 123 });
|
||||
|
||||
// use expect by jest
|
||||
assert(result.status ===200);
|
||||
assert(result.status === 200);
|
||||
assert(result.body.message === 'OK');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user