chore: format

This commit is contained in:
xiaojunnuo
2026-05-31 01:41:33 +08:00
parent acd440106b
commit 4b57a0d729
557 changed files with 12530 additions and 14039 deletions
@@ -1,16 +1,16 @@
import { createHttpRequest } from '@midwayjs/mock';
import { Application } from '@midwayjs/koa';
import assert from 'assert';
import { getApp } from '../setup.js';
import { createHttpRequest } from "@midwayjs/mock";
import { Application } from "@midwayjs/koa";
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) {
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 });
const result = await createHttpRequest(app).get("/api/get_user").query({ uid: 123 });
// use expect by jest
assert(result.status === 200);
assert(result.body.message === 'OK');
assert(result.body.message === "OK");
});
});