Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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