From 4324ed648ec2f3df9c90d2f2e57f83afa081136c Mon Sep 17 00:00:00 2001 From: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com> Date: Mon, 21 Jun 2021 13:21:59 +0700 Subject: [PATCH 1/2] docs: enable syntax highlighting to a code block --- website/versioned_docs/version-27.0/JestObjectAPI.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/versioned_docs/version-27.0/JestObjectAPI.md b/website/versioned_docs/version-27.0/JestObjectAPI.md index a7b45df77980..1bccfdd2425b 100644 --- a/website/versioned_docs/version-27.0/JestObjectAPI.md +++ b/website/versioned_docs/version-27.0/JestObjectAPI.md @@ -147,7 +147,7 @@ Creates a new property with the same primitive value as the original property. Example: -``` +```js // example.js module.exports = { function: function square(a, b) { From 40335690fecb789065607b7d9180989ff44b81f0 Mon Sep 17 00:00:00 2001 From: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com> Date: Mon, 21 Jun 2021 15:26:27 +0700 Subject: [PATCH 2/2] Update more docs --- docs/JestObjectAPI.md | 2 +- website/versioned_docs/version-25.x/JestObjectAPI.md | 2 +- website/versioned_docs/version-26.x/JestObjectAPI.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/JestObjectAPI.md b/docs/JestObjectAPI.md index a7b45df77980..1bccfdd2425b 100644 --- a/docs/JestObjectAPI.md +++ b/docs/JestObjectAPI.md @@ -147,7 +147,7 @@ Creates a new property with the same primitive value as the original property. Example: -``` +```js // example.js module.exports = { function: function square(a, b) { diff --git a/website/versioned_docs/version-25.x/JestObjectAPI.md b/website/versioned_docs/version-25.x/JestObjectAPI.md index ef778313e6e8..043d51db4be8 100644 --- a/website/versioned_docs/version-25.x/JestObjectAPI.md +++ b/website/versioned_docs/version-25.x/JestObjectAPI.md @@ -143,7 +143,7 @@ Creates a new property with the same primitive value as the original property. Example: -``` +```js // example.js module.exports = { function: function square(a, b) { diff --git a/website/versioned_docs/version-26.x/JestObjectAPI.md b/website/versioned_docs/version-26.x/JestObjectAPI.md index 8a2093ed2e57..113b07bdc992 100644 --- a/website/versioned_docs/version-26.x/JestObjectAPI.md +++ b/website/versioned_docs/version-26.x/JestObjectAPI.md @@ -147,7 +147,7 @@ Creates a new property with the same primitive value as the original property. Example: -``` +```js // example.js module.exports = { function: function square(a, b) {