Skip to content

Commit 6826764

Browse files
committed
chore(docs): correct generated mock example
1 parent 6308b6c commit 6826764

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

docs/JestObjectAPI.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,12 @@ module.exports = {
157157
const result = await a * b;
158158
return result;
159159
},
160-
class: new class Bar {
160+
class: new (class Bar {
161161
constructor() {
162162
this.array = [1, 2, 3];
163163
}
164164
foo() {}
165-
},
165+
})(),
166166
object: {
167167
baz: 'foo',
168168
bar: {

website/versioned_docs/version-25.x/JestObjectAPI.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,12 @@ module.exports = {
153153
const result = await a * b;
154154
return result;
155155
},
156-
class: new class Bar {
156+
class: new (class Bar {
157157
constructor() {
158158
this.array = [1, 2, 3];
159159
}
160160
foo() {}
161-
},
161+
})(),
162162
object: {
163163
baz: 'foo',
164164
bar: {

website/versioned_docs/version-26.x/JestObjectAPI.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,12 @@ module.exports = {
157157
const result = await a * b;
158158
return result;
159159
},
160-
class: new class Bar {
160+
class: new (class Bar {
161161
constructor() {
162162
this.array = [1, 2, 3];
163163
}
164164
foo() {}
165-
},
165+
})(),
166166
object: {
167167
baz: 'foo',
168168
bar: {

website/versioned_docs/version-27.0/JestObjectAPI.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,12 @@ module.exports = {
157157
const result = await a * b;
158158
return result;
159159
},
160-
class: new class Bar {
160+
class: new (class Bar {
161161
constructor() {
162162
this.array = [1, 2, 3];
163163
}
164164
foo() {}
165-
},
165+
})(),
166166
object: {
167167
baz: 'foo',
168168
bar: {

0 commit comments

Comments
 (0)