summary refs log tree commit diff
path: root/tests/routes/ping.test.js
blob: 6fa4b16061af0bcf180f0fbd352c9e3cc968c4ce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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);
		});
	});
});