Skip to content

Commit

Permalink
Re-enable integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-helmich committed Sep 9, 2024
1 parent bb6109c commit 8f08d0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 31 deletions.
29 changes: 1 addition & 28 deletions src/commands/conversation/show.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down Expand Up @@ -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`);
});*/
5 changes: 2 additions & 3 deletions src/commands/database/mysql/create.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down Expand Up @@ -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, {
Expand Down

0 comments on commit 8f08d0b

Please sign in to comment.