mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-14 18:10:39 +09:00
Merge remote-tracking branch 'public-gh/master' into paperclip-subissues
* public-gh/master: hide version until loaded add app version label
This commit is contained in:
commit
4a5f6ec00a
5 changed files with 22 additions and 2 deletions
|
|
@ -2,6 +2,7 @@ import { describe, it, expect } from "vitest";
|
|||
import express from "express";
|
||||
import request from "supertest";
|
||||
import { healthRoutes } from "../routes/health.js";
|
||||
import { serverVersion } from "../version.js";
|
||||
|
||||
describe("GET /health", () => {
|
||||
const app = express();
|
||||
|
|
@ -10,6 +11,6 @@ describe("GET /health", () => {
|
|||
it("returns 200 with status ok", async () => {
|
||||
const res = await request(app).get("/health");
|
||||
expect(res.status).toBe(200);
|
||||
expect(res.body).toEqual({ status: "ok" });
|
||||
expect(res.body).toEqual({ status: "ok", version: serverVersion });
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue