summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Knight <cknight1234@gmail.com>2020-04-10 15:10:45 +0100
committerGitHub <noreply@github.com>2020-04-10 10:10:45 -0400
commit85c61bff1cee2344646b533b96a4b5c1a67a5850 (patch)
tree40103e0a7450e53f445e46c8bde4ce923ad736c9
parent5bf1e4de3b394eef203be3c393db57538e748be1 (diff)
fix(std/testing/asserts): change left/right to actual/expected (#4697)
-rw-r--r--std/testing/asserts.ts4
-rw-r--r--std/testing/asserts_test.ts4
2 files changed, 6 insertions, 2 deletions
diff --git a/std/testing/asserts.ts b/std/testing/asserts.ts
index 19be68763..b44b20a94 100644
--- a/std/testing/asserts.ts
+++ b/std/testing/asserts.ts
@@ -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("");
diff --git a/std/testing/asserts_test.ts b/std/testing/asserts_test.ts
index 62e199298..ac0676ed5 100644
--- a/std/testing/asserts_test.ts
+++ b/std/testing/asserts_test.ts
@@ -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")
+ )}`,
"",
"",
];