From 8f08d0b1228d768d29c96b33b3f06b7ff2fa624d Mon Sep 17 00:00:00 2001 From: Martin Helmich Date: Mon, 9 Sep 2024 13:12:00 +0200 Subject: [PATCH] Re-enable integration tests --- src/commands/conversation/show.test.ts | 29 +--------------------- src/commands/database/mysql/create.test.ts | 5 ++-- 2 files changed, 3 insertions(+), 31 deletions(-) diff --git a/src/commands/conversation/show.test.ts b/src/commands/conversation/show.test.ts index 8841769b..9fe9ab3a 100644 --- a/src/commands/conversation/show.test.ts +++ b/src/commands/conversation/show.test.ts @@ -35,8 +35,7 @@ describe("conversation:show", () => { expect(true).toBeTruthy(); }); - // skipped, to be fixed later - it.skip("shows a conversation and its messages", async () => { + it("shows a conversation and its messages", async () => { const scope = nock("https://api.mittwald.de") .get(`/v2/conversations/${conversationId}`) .reply(200, { @@ -90,29 +89,3 @@ describe("conversation:show", () => { expect(error).toBeUndefined(); }); }); - -/* - - api - .env({ MITTWALD_API_TOKEN: "foo" }) - .stdout() - .command(["conversation show", conversationId]) - .it("shows a conversation and its messages", (ctx) => { - expect(ctx.stdout.trim()).to.equal(`Conversation metadata -───────────────────── - -Title Test conversation -ID CONV-ID -Opened less than a minute ago by Unknown User -Status open - -Messages -──────── - -CREATED, less than a minute ago - -John Doe, less than a minute ago -Hello, World! - -CLOSED, less than a minute ago`); - });*/ diff --git a/src/commands/database/mysql/create.test.ts b/src/commands/database/mysql/create.test.ts index e59f4c4b..2b1fe5ea 100644 --- a/src/commands/database/mysql/create.test.ts +++ b/src/commands/database/mysql/create.test.ts @@ -34,8 +34,7 @@ describe("database:mysql:create", () => { nock.cleanAll(); }); - // Skipped, to be fixed later - it.skip("creates a database and prints database and user name", async () => { + it("creates a database and prints database and user name", async () => { const scope = nock("https://api.mittwald.de"); scope.get(`/v2/projects/${projectId}`).reply(200, { @@ -86,7 +85,7 @@ describe("database:mysql:create", () => { }); // Skipped, to be fixed later - it.skip("retries fetching user until successful", async () => { + it("retries fetching user until successful", async () => { const scope = nock("https://api.mittwald.de"); scope.get(`/v2/projects/${projectId}`).reply(200, {