Skip to content

Commit

Permalink
Fixed Broken Tests
Browse files Browse the repository at this point in the history
Signed-off-by: Likhitha Nimma <Likhitha.Nimma@ibm.com>
  • Loading branch information
likhithanimma1 committed Nov 16, 2023
1 parent 6cad371 commit 05f3f44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ describe("UnixCommand Actions Unit Testing", () => {
});
expect(showInputBox.mock.calls.length).toBe(2);
expect(appendLine.mock.calls.length).toBe(2);
expect(appendLine.mock.calls[0][0]).toBe("> d iplinfo1");
expect(appendLine.mock.calls[0][0]).toBe("> /u/directorypath d iplinfo1");
expect(appendLine.mock.calls[1][0]["commandResponse"]).toBe("iplinfo1");
expect(showInformationMessage.mock.calls.length).toBe(0);
});
Expand Down Expand Up @@ -259,7 +259,7 @@ describe("UnixCommand Actions Unit Testing", () => {
});
expect(showInputBox.mock.calls.length).toBe(1);
expect(appendLine.mock.calls.length).toBe(2);
expect(appendLine.mock.calls[0][0]).toBe("> d iplinfo0");
expect(appendLine.mock.calls[0][0]).toBe("> /u/directorypath d iplinfo0");
expect(appendLine.mock.calls[1][0]["commandResponse"]).toBe("iplinfo0");
expect(showInformationMessage.mock.calls.length).toBe(0);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ describe("unixCommandActions unit testing", () => {
});
expect(showInputBox.mock.calls.length).toBe(2);
expect(appendLine.mock.calls.length).toBe(2);
expect(appendLine.mock.calls[0][0]).toBe("> d iplinfo1");
expect(appendLine.mock.calls[0][0]).toBe("> /u/directorypath d iplinfo1");
expect(appendLine.mock.calls[1][0]["commandResponse"]).toBe(submitResponse.commandResponse);
expect(showInformationMessage.mock.calls.length).toBe(0);

Expand All @@ -201,7 +201,7 @@ describe("unixCommandActions unit testing", () => {
placeHolder: "Select the Profile to use to submit the Unix command",
});
expect(showInputBox.mock.calls.length).toBe(1);
expect(appendLine.mock.calls[0][0]).toBe("> d iplinfo2");
expect(appendLine.mock.calls[0][0]).toBe("> /u/directorypath d iplinfo2");
expect(withProgress.mock.calls.length).toBe(1);

showQuickPick.mockReset();
Expand Down

0 comments on commit 05f3f44

Please sign in to comment.