|
|
@@ -17,7 +17,7 @@ describe("tui.selectSession endpoint", () => {
|
|
|
const session = await Session.create({})
|
|
|
|
|
|
// #when
|
|
|
- const app = Server.App()
|
|
|
+ const app = Server.Default()
|
|
|
const response = await app.request("/tui/select-session", {
|
|
|
method: "POST",
|
|
|
headers: { "Content-Type": "application/json" },
|
|
|
@@ -42,7 +42,7 @@ describe("tui.selectSession endpoint", () => {
|
|
|
const nonExistentSessionID = "ses_nonexistent123"
|
|
|
|
|
|
// #when
|
|
|
- const app = Server.App()
|
|
|
+ const app = Server.Default()
|
|
|
const response = await app.request("/tui/select-session", {
|
|
|
method: "POST",
|
|
|
headers: { "Content-Type": "application/json" },
|
|
|
@@ -63,7 +63,7 @@ describe("tui.selectSession endpoint", () => {
|
|
|
const invalidSessionID = "invalid_session_id"
|
|
|
|
|
|
// #when
|
|
|
- const app = Server.App()
|
|
|
+ const app = Server.Default()
|
|
|
const response = await app.request("/tui/select-session", {
|
|
|
method: "POST",
|
|
|
headers: { "Content-Type": "application/json" },
|