Skip to content

Commit

Permalink
chore(docs): correct generated mock example
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Jun 22, 2021
1 parent 6308b6c commit 6826764
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docs/JestObjectAPI.md
Expand Up @@ -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: {
Expand Down
4 changes: 2 additions & 2 deletions website/versioned_docs/version-25.x/JestObjectAPI.md
Expand Up @@ -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: {
Expand Down
4 changes: 2 additions & 2 deletions website/versioned_docs/version-26.x/JestObjectAPI.md
Expand Up @@ -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: {
Expand Down
4 changes: 2 additions & 2 deletions website/versioned_docs/version-27.0/JestObjectAPI.md
Expand Up @@ -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: {
Expand Down

0 comments on commit 6826764

Please sign in to comment.