1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-15 23:22:38 +01:00
server/api/tests/routes/ping.test.js
2021-08-30 16:23:19 +02:00

13 lines
341 B
JavaScript

const supertest = require("supertest");
const request = supertest("http://localhost:3001");
describe("/ping", () => {
describe("GET", () => {
test("should return 200 and pong", async () => {
let response = await request.get("/api/ping");
expect(response.text).toBe("pong");
expect(response.statusCode).toBe(200);
});
});
});