This commit is contained in:
@ -64,7 +64,6 @@ beforeAll(async () => {
|
|||||||
it("serves a GET request to /", async () => {
|
it("serves a GET request to /", async () => {
|
||||||
const response = await app.fetch(new Request("http://localhost/"));
|
const response = await app.fetch(new Request("http://localhost/"));
|
||||||
const text = await response.text();
|
const text = await response.text();
|
||||||
console.log(text);
|
|
||||||
expect(response.status).toBe(200);
|
expect(response.status).toBe(200);
|
||||||
expect(text).toBe("TrafficCue Server");
|
expect(text).toBe("TrafficCue Server");
|
||||||
});
|
});
|
||||||
@ -231,7 +230,6 @@ describe("Saved Routes", () => {
|
|||||||
const json = await res.json();
|
const json = await res.json();
|
||||||
expect(json).toBeDefined();
|
expect(json).toBeDefined();
|
||||||
expect(json).toBeArray();
|
expect(json).toBeArray();
|
||||||
console.log(json);
|
|
||||||
const routes = json as { name: string; data: string }[];
|
const routes = json as { name: string; data: string }[];
|
||||||
expect(routes.length).toBe(1);
|
expect(routes.length).toBe(1);
|
||||||
expect(routes[0]!.name).toBe("Home to Work");
|
expect(routes[0]!.name).toBe("Home to Work");
|
||||||
|
|||||||
Reference in New Issue
Block a user