Skip to content

Commit

Permalink
test: fixed unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vvagaytsev committed Jul 20, 2022
1 parent ec72f9f commit a1e39df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/test/unit/src/cli/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ describe("pickCommand", () => {
})

it("picks a command with an alias", () => {
const { command, rest } = pickCommand(commands, ["del", "env", "foo", "--force"])
expect(command?.getPath()).to.eql(["delete", "environment"])
const { command, rest } = pickCommand(commands, ["cleanup", "ns", "foo", "--force"])
expect(command?.getPath()).to.eql(["cleanup", "namespace"])
expect(rest).to.eql(["foo", "--force"])
})

Expand Down
4 changes: 2 additions & 2 deletions core/test/unit/src/commands/run/workflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ describe("RunWorkflowCommand", () => {
{ command: ["deploy", "${var.foo}"] }, // <-- the second (null) element should get filtered out
{ command: ["run", "test", "module-a", "unit"] },
{ command: ["run", "task", "task-a"] },
{ command: ["delete", "service", "service-a"] },
{ command: ["delete", "environment"] },
{ command: ["cleanup", "service", "service-a"] },
{ command: ["cleanup", "namespace"] },
{ command: ["publish"] },
],
},
Expand Down

0 comments on commit a1e39df

Please sign in to comment.