Skip to content

Commit

Permalink
fix(testing/asserts): change left/right to actual/expected (denoland/…
Browse files Browse the repository at this point in the history
  • Loading branch information
cknight authored and denobot committed Jan 31, 2021
1 parent b6c7e14 commit 905e4ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion testing/asserts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ function buildMessage(diffResult: ReadonlyArray<DiffResult<string>>): string[] {
messages.push("");
messages.push("");
messages.push(
` ${gray(bold("[Diff]"))} ${red(bold("Left"))} / ${green(bold("Right"))}`
` ${gray(bold("[Diff]"))} ${red(bold("Actual"))} / ${green(
bold("Expected")
)}`
);
messages.push("");
messages.push("");
Expand Down
4 changes: 3 additions & 1 deletion testing/asserts_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,9 @@ test(function testingAssertFailWithWrongErrorClass(): void {
const createHeader = (): string[] => [
"",
"",
` ${gray(bold("[Diff]"))} ${red(bold("Left"))} / ${green(bold("Right"))}`,
` ${gray(bold("[Diff]"))} ${red(bold("Actual"))} / ${green(
bold("Expected")
)}`,
"",
"",
];
Expand Down

0 comments on commit 905e4ad

Please sign in to comment.