Skip to content

Commit 5c5528b

Browse files
committed
remove comment
1 parent 39df312 commit 5c5528b

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

tests/server.test.js

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe("Server Endpoints", () => {
1010
beforeAll(async () => {
1111
// Start your container
1212
container = await new GenericContainer("samanthamorris684/catbot-backend@sha256:6e2bf0ca7fa13fee68e5aa5a85f3c179c5c44bf3a50e3c271c04d64f7cd9e063")
13-
.withExposedPorts(5001) // Your server inside listens on 5001
13+
.withExposedPorts(5001)
1414
.start();
1515

1616
const host = container.getHost();
@@ -28,21 +28,9 @@ describe("Server Endpoints", () => {
2828
expect(response.data).toEqual({ error: "Model name and prompt are required" });
2929
});
3030

31-
test("POST /execute should return 500 if backend model is unreachable", async () => {
32-
const response = await axios.post(`${serverUrl}/execute`, { model: "nonexistent", prompt: "hello" }, { validateStatus: () => true });
33-
expect(response.status).toBe(500);
34-
expect(response.data.error).toBeDefined();
35-
});
36-
3731
test("POST /api/stream should return 400 if missing model or prompt", async () => {
3832
const response = await axios.post(`${serverUrl}/api/stream`, { model: "test-model" }, { validateStatus: () => true });
3933
expect(response.status).toBe(400);
4034
expect(response.data).toEqual({ error: "Model name and prompt are required" });
4135
});
42-
43-
test("GET /api/stream should return 400 if missing model or prompt", async () => {
44-
const response = await axios.get(`${serverUrl}/api/stream?model=test-model`, { validateStatus: () => true });
45-
expect(response.status).toBe(400);
46-
expect(response.data).toEqual({ error: "Model name and prompt are required" });
47-
});
4836
});

0 commit comments

Comments
 (0)