From c080bde7ec6a6a412cfea69caef10378bbe91d9d Mon Sep 17 00:00:00 2001 From: Kalyn <65800415+kalyncoose@users.noreply.github.com> Date: Mon, 9 Jan 2023 06:11:47 -0700 Subject: [PATCH 1/2] Fix typo in JS comment --- website/versioned_docs/version-29.3/UsingMatchers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/versioned_docs/version-29.3/UsingMatchers.md b/website/versioned_docs/version-29.3/UsingMatchers.md index 64316b679017..0bf374320f61 100644 --- a/website/versioned_docs/version-29.3/UsingMatchers.md +++ b/website/versioned_docs/version-29.3/UsingMatchers.md @@ -159,7 +159,7 @@ test('compiling android goes as expected', () => { expect(() => compileAndroidCode()).toThrow('you are using the wrong JDK'); expect(() => compileAndroidCode()).toThrow(/JDK/); - // Or you can match an exact error mesage using a regexp like below + // Or you can match an exact error message using a regexp like below expect(() => compileAndroidCode()).toThrow(/^you are using the wrong JDK$/); // Test fails expect(() => compileAndroidCode()).toThrow(/^you are using the wrong JDK!$/); // Test pass }); From 3f4bb11380b8c0fd277adcc19709062683ffa29d Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Mon, 9 Jan 2023 20:21:55 +0100 Subject: [PATCH 2/2] all versions --- docs/UsingMatchers.md | 2 +- website/versioned_docs/version-25.x/UsingMatchers.md | 2 +- website/versioned_docs/version-26.x/UsingMatchers.md | 2 +- website/versioned_docs/version-27.x/UsingMatchers.md | 2 +- website/versioned_docs/version-28.x/UsingMatchers.md | 2 +- website/versioned_docs/version-29.0/UsingMatchers.md | 2 +- website/versioned_docs/version-29.1/UsingMatchers.md | 2 +- website/versioned_docs/version-29.2/UsingMatchers.md | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/UsingMatchers.md b/docs/UsingMatchers.md index 64316b679017..0bf374320f61 100644 --- a/docs/UsingMatchers.md +++ b/docs/UsingMatchers.md @@ -159,7 +159,7 @@ test('compiling android goes as expected', () => { expect(() => compileAndroidCode()).toThrow('you are using the wrong JDK'); expect(() => compileAndroidCode()).toThrow(/JDK/); - // Or you can match an exact error mesage using a regexp like below + // Or you can match an exact error message using a regexp like below expect(() => compileAndroidCode()).toThrow(/^you are using the wrong JDK$/); // Test fails expect(() => compileAndroidCode()).toThrow(/^you are using the wrong JDK!$/); // Test pass }); diff --git a/website/versioned_docs/version-25.x/UsingMatchers.md b/website/versioned_docs/version-25.x/UsingMatchers.md index d7081bffc61a..c224906d402d 100644 --- a/website/versioned_docs/version-25.x/UsingMatchers.md +++ b/website/versioned_docs/version-25.x/UsingMatchers.md @@ -159,7 +159,7 @@ test('compiling android goes as expected', () => { expect(() => compileAndroidCode()).toThrow('you are using the wrong JDK'); expect(() => compileAndroidCode()).toThrow(/JDK/); - // Or you can match an exact error mesage using a regexp like below + // Or you can match an exact error message using a regexp like below expect(() => compileAndroidCode()).toThrow(/^you are using the wrong JDK$/); // Test fails expect(() => compileAndroidCode()).toThrow(/^you are using the wrong JDK!$/); // Test pass }); diff --git a/website/versioned_docs/version-26.x/UsingMatchers.md b/website/versioned_docs/version-26.x/UsingMatchers.md index 570bd243e5dd..79ea74ff43a7 100644 --- a/website/versioned_docs/version-26.x/UsingMatchers.md +++ b/website/versioned_docs/version-26.x/UsingMatchers.md @@ -159,7 +159,7 @@ test('compiling android goes as expected', () => { expect(() => compileAndroidCode()).toThrow('you are using the wrong JDK'); expect(() => compileAndroidCode()).toThrow(/JDK/); - // Or you can match an exact error mesage using a regexp like below + // Or you can match an exact error message using a regexp like below expect(() => compileAndroidCode()).toThrow(/^you are using the wrong JDK$/); // Test fails expect(() => compileAndroidCode()).toThrow(/^you are using the wrong JDK!$/); // Test pass }); diff --git a/website/versioned_docs/version-27.x/UsingMatchers.md b/website/versioned_docs/version-27.x/UsingMatchers.md index 64316b679017..0bf374320f61 100644 --- a/website/versioned_docs/version-27.x/UsingMatchers.md +++ b/website/versioned_docs/version-27.x/UsingMatchers.md @@ -159,7 +159,7 @@ test('compiling android goes as expected', () => { expect(() => compileAndroidCode()).toThrow('you are using the wrong JDK'); expect(() => compileAndroidCode()).toThrow(/JDK/); - // Or you can match an exact error mesage using a regexp like below + // Or you can match an exact error message using a regexp like below expect(() => compileAndroidCode()).toThrow(/^you are using the wrong JDK$/); // Test fails expect(() => compileAndroidCode()).toThrow(/^you are using the wrong JDK!$/); // Test pass }); diff --git a/website/versioned_docs/version-28.x/UsingMatchers.md b/website/versioned_docs/version-28.x/UsingMatchers.md index 64316b679017..0bf374320f61 100644 --- a/website/versioned_docs/version-28.x/UsingMatchers.md +++ b/website/versioned_docs/version-28.x/UsingMatchers.md @@ -159,7 +159,7 @@ test('compiling android goes as expected', () => { expect(() => compileAndroidCode()).toThrow('you are using the wrong JDK'); expect(() => compileAndroidCode()).toThrow(/JDK/); - // Or you can match an exact error mesage using a regexp like below + // Or you can match an exact error message using a regexp like below expect(() => compileAndroidCode()).toThrow(/^you are using the wrong JDK$/); // Test fails expect(() => compileAndroidCode()).toThrow(/^you are using the wrong JDK!$/); // Test pass }); diff --git a/website/versioned_docs/version-29.0/UsingMatchers.md b/website/versioned_docs/version-29.0/UsingMatchers.md index 64316b679017..0bf374320f61 100644 --- a/website/versioned_docs/version-29.0/UsingMatchers.md +++ b/website/versioned_docs/version-29.0/UsingMatchers.md @@ -159,7 +159,7 @@ test('compiling android goes as expected', () => { expect(() => compileAndroidCode()).toThrow('you are using the wrong JDK'); expect(() => compileAndroidCode()).toThrow(/JDK/); - // Or you can match an exact error mesage using a regexp like below + // Or you can match an exact error message using a regexp like below expect(() => compileAndroidCode()).toThrow(/^you are using the wrong JDK$/); // Test fails expect(() => compileAndroidCode()).toThrow(/^you are using the wrong JDK!$/); // Test pass }); diff --git a/website/versioned_docs/version-29.1/UsingMatchers.md b/website/versioned_docs/version-29.1/UsingMatchers.md index 64316b679017..0bf374320f61 100644 --- a/website/versioned_docs/version-29.1/UsingMatchers.md +++ b/website/versioned_docs/version-29.1/UsingMatchers.md @@ -159,7 +159,7 @@ test('compiling android goes as expected', () => { expect(() => compileAndroidCode()).toThrow('you are using the wrong JDK'); expect(() => compileAndroidCode()).toThrow(/JDK/); - // Or you can match an exact error mesage using a regexp like below + // Or you can match an exact error message using a regexp like below expect(() => compileAndroidCode()).toThrow(/^you are using the wrong JDK$/); // Test fails expect(() => compileAndroidCode()).toThrow(/^you are using the wrong JDK!$/); // Test pass }); diff --git a/website/versioned_docs/version-29.2/UsingMatchers.md b/website/versioned_docs/version-29.2/UsingMatchers.md index 64316b679017..0bf374320f61 100644 --- a/website/versioned_docs/version-29.2/UsingMatchers.md +++ b/website/versioned_docs/version-29.2/UsingMatchers.md @@ -159,7 +159,7 @@ test('compiling android goes as expected', () => { expect(() => compileAndroidCode()).toThrow('you are using the wrong JDK'); expect(() => compileAndroidCode()).toThrow(/JDK/); - // Or you can match an exact error mesage using a regexp like below + // Or you can match an exact error message using a regexp like below expect(() => compileAndroidCode()).toThrow(/^you are using the wrong JDK$/); // Test fails expect(() => compileAndroidCode()).toThrow(/^you are using the wrong JDK!$/); // Test pass });