Skip to content

Commit

Permalink
Remove outdated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cannawen committed Jan 15, 2024
1 parent af5a618 commit b414b28
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions src/__tests__/server.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,6 @@ describe("server", () => {
return done();
});
});
test("does not have existing session", (done) => {
(engine.getSession as jest.Mock).mockReturnValue(undefined);
req.end((error: any) => {
if (error) return done(error);
expect(engine.startCoachingSession).toHaveBeenCalledWith(
"studentId"
);
return done();
});
});
});
test("stop coaching notifies engine to delete student's session", (done) => {
request(sut)
Expand Down Expand Up @@ -150,29 +140,6 @@ describe("server", () => {
]);
});

// TODO need to mock out defaultConfigInfo to have thr proper values
test.skip("get all", (done) => {
request(sut)
.get("/coach/studentId/config/get")
.expect("Content-Type", /json/)
.expect(200)
.expect(
JSON.stringify([
["configTopicOne", "PRIVATE", null],
["configTopicTwo", "PUBLIC", null],
["configTopicThree", "PUBLIC_INTERRUPTING", null],
["configTopicFour", "NONE", null],
])
)
.end((error: any) => {
if (error) return done(error);
expect(engine.getFactValue).toHaveBeenCalledWith(
"studentId",
expect.anything()
);
return done();
});
});
test("update", (done) => {
request(sut)
.post("/coach/studentId/config/configTopicTwo/NONE")
Expand Down

0 comments on commit b414b28

Please sign in to comment.