From 6826764078cdcc5ea10033c69e8687b4594b1f73 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Tue, 22 Jun 2021 12:40:09 +0200 Subject: [PATCH] chore(docs): correct generated mock example --- docs/JestObjectAPI.md | 4 ++-- website/versioned_docs/version-25.x/JestObjectAPI.md | 4 ++-- website/versioned_docs/version-26.x/JestObjectAPI.md | 4 ++-- website/versioned_docs/version-27.0/JestObjectAPI.md | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/JestObjectAPI.md b/docs/JestObjectAPI.md index 1bccfdd2425b..bebe10b5f2f3 100644 --- a/docs/JestObjectAPI.md +++ b/docs/JestObjectAPI.md @@ -157,12 +157,12 @@ module.exports = { const result = await a * b; return result; }, - class: new class Bar { + class: new (class Bar { constructor() { this.array = [1, 2, 3]; } foo() {} - }, + })(), object: { baz: 'foo', bar: { diff --git a/website/versioned_docs/version-25.x/JestObjectAPI.md b/website/versioned_docs/version-25.x/JestObjectAPI.md index 043d51db4be8..614fdba67e78 100644 --- a/website/versioned_docs/version-25.x/JestObjectAPI.md +++ b/website/versioned_docs/version-25.x/JestObjectAPI.md @@ -153,12 +153,12 @@ module.exports = { const result = await a * b; return result; }, - class: new class Bar { + class: new (class Bar { constructor() { this.array = [1, 2, 3]; } foo() {} - }, + })(), object: { baz: 'foo', bar: { diff --git a/website/versioned_docs/version-26.x/JestObjectAPI.md b/website/versioned_docs/version-26.x/JestObjectAPI.md index 113b07bdc992..fbfef281e9c4 100644 --- a/website/versioned_docs/version-26.x/JestObjectAPI.md +++ b/website/versioned_docs/version-26.x/JestObjectAPI.md @@ -157,12 +157,12 @@ module.exports = { const result = await a * b; return result; }, - class: new class Bar { + class: new (class Bar { constructor() { this.array = [1, 2, 3]; } foo() {} - }, + })(), object: { baz: 'foo', bar: { diff --git a/website/versioned_docs/version-27.0/JestObjectAPI.md b/website/versioned_docs/version-27.0/JestObjectAPI.md index 1bccfdd2425b..bebe10b5f2f3 100644 --- a/website/versioned_docs/version-27.0/JestObjectAPI.md +++ b/website/versioned_docs/version-27.0/JestObjectAPI.md @@ -157,12 +157,12 @@ module.exports = { const result = await a * b; return result; }, - class: new class Bar { + class: new (class Bar { constructor() { this.array = [1, 2, 3]; } foo() {} - }, + })(), object: { baz: 'foo', bar: {