Skip to content

Commit

Permalink
modify the test of verify command
Browse files Browse the repository at this point in the history
modify the assertion of correct verify command test
  • Loading branch information
To-Ki-O committed Apr 11, 2023
1 parent 52e07ec commit 04bf1c2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/libs/actions.verify.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ describe("VerifyAction", () => {
await new VerifyAction().execute();
assertSpyCall(consoleLogStub, 0, {
args: [
Colors.green(`verification success`),
"test1: "
],
});
assertSpyCall(consoleLogStub, 1, {
args: [
Colors.green(`latest`)
],
});
} finally {
Expand All @@ -55,7 +60,8 @@ describe("VerifyAction", () => {
await new VerifyAction().execute();
assertSpyCall(consoleLogStub, 0, {
args: [
Colors.red(`test1: verification failed`),
"test1: ",
Colors.red("outdated"),
],
});
} finally {
Expand Down

0 comments on commit 04bf1c2

Please sign in to comment.