Skip to content

Commit 43b0ae8

Browse files
docs: update snapshot object format (jestjs#14179)
1 parent 8cb542c commit 43b0ae8

File tree

7 files changed

+21
-21
lines changed

7 files changed

+21
-21
lines changed

docs/SnapshotTesting.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ it('will fail every time', () => {
160160

161161
// Snapshot
162162
exports[`will fail every time 1`] = `
163-
Object {
163+
{
164164
"createdAt": 2018-05-19T23:36:09.816Z,
165165
"id": 3,
166166
"name": "LeBron James",
@@ -186,7 +186,7 @@ it('will check the matchers and pass', () => {
186186

187187
// Snapshot
188188
exports[`will check the matchers and pass 1`] = `
189-
Object {
189+
{
190190
"createdAt": Any<Date>,
191191
"id": Any<Number>,
192192
"name": "LeBron James",
@@ -211,7 +211,7 @@ it('will check the values and pass', () => {
211211

212212
// Snapshot
213213
exports[`will check the values and pass 1`] = `
214-
Object {
214+
{
215215
"createdAt": Any<Date>,
216216
"name": 'Bond... James Bond',
217217
}

website/versioned_docs/version-29.0/SnapshotTesting.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ it('will fail every time', () => {
160160

161161
// Snapshot
162162
exports[`will fail every time 1`] = `
163-
Object {
163+
{
164164
"createdAt": 2018-05-19T23:36:09.816Z,
165165
"id": 3,
166166
"name": "LeBron James",
@@ -186,7 +186,7 @@ it('will check the matchers and pass', () => {
186186

187187
// Snapshot
188188
exports[`will check the matchers and pass 1`] = `
189-
Object {
189+
{
190190
"createdAt": Any<Date>,
191191
"id": Any<Number>,
192192
"name": "LeBron James",
@@ -211,7 +211,7 @@ it('will check the values and pass', () => {
211211

212212
// Snapshot
213213
exports[`will check the values and pass 1`] = `
214-
Object {
214+
{
215215
"createdAt": Any<Date>,
216216
"name": 'Bond... James Bond',
217217
}

website/versioned_docs/version-29.1/SnapshotTesting.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ it('will fail every time', () => {
160160

161161
// Snapshot
162162
exports[`will fail every time 1`] = `
163-
Object {
163+
{
164164
"createdAt": 2018-05-19T23:36:09.816Z,
165165
"id": 3,
166166
"name": "LeBron James",
@@ -186,7 +186,7 @@ it('will check the matchers and pass', () => {
186186

187187
// Snapshot
188188
exports[`will check the matchers and pass 1`] = `
189-
Object {
189+
{
190190
"createdAt": Any<Date>,
191191
"id": Any<Number>,
192192
"name": "LeBron James",
@@ -211,7 +211,7 @@ it('will check the values and pass', () => {
211211

212212
// Snapshot
213213
exports[`will check the values and pass 1`] = `
214-
Object {
214+
{
215215
"createdAt": Any<Date>,
216216
"name": 'Bond... James Bond',
217217
}

website/versioned_docs/version-29.2/SnapshotTesting.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ it('will fail every time', () => {
160160

161161
// Snapshot
162162
exports[`will fail every time 1`] = `
163-
Object {
163+
{
164164
"createdAt": 2018-05-19T23:36:09.816Z,
165165
"id": 3,
166166
"name": "LeBron James",
@@ -186,7 +186,7 @@ it('will check the matchers and pass', () => {
186186

187187
// Snapshot
188188
exports[`will check the matchers and pass 1`] = `
189-
Object {
189+
{
190190
"createdAt": Any<Date>,
191191
"id": Any<Number>,
192192
"name": "LeBron James",
@@ -211,7 +211,7 @@ it('will check the values and pass', () => {
211211

212212
// Snapshot
213213
exports[`will check the values and pass 1`] = `
214-
Object {
214+
{
215215
"createdAt": Any<Date>,
216216
"name": 'Bond... James Bond',
217217
}

website/versioned_docs/version-29.3/SnapshotTesting.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ it('will fail every time', () => {
160160

161161
// Snapshot
162162
exports[`will fail every time 1`] = `
163-
Object {
163+
{
164164
"createdAt": 2018-05-19T23:36:09.816Z,
165165
"id": 3,
166166
"name": "LeBron James",
@@ -186,7 +186,7 @@ it('will check the matchers and pass', () => {
186186

187187
// Snapshot
188188
exports[`will check the matchers and pass 1`] = `
189-
Object {
189+
{
190190
"createdAt": Any<Date>,
191191
"id": Any<Number>,
192192
"name": "LeBron James",
@@ -211,7 +211,7 @@ it('will check the values and pass', () => {
211211

212212
// Snapshot
213213
exports[`will check the values and pass 1`] = `
214-
Object {
214+
{
215215
"createdAt": Any<Date>,
216216
"name": 'Bond... James Bond',
217217
}

website/versioned_docs/version-29.4/SnapshotTesting.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ it('will fail every time', () => {
160160

161161
// Snapshot
162162
exports[`will fail every time 1`] = `
163-
Object {
163+
{
164164
"createdAt": 2018-05-19T23:36:09.816Z,
165165
"id": 3,
166166
"name": "LeBron James",
@@ -186,7 +186,7 @@ it('will check the matchers and pass', () => {
186186

187187
// Snapshot
188188
exports[`will check the matchers and pass 1`] = `
189-
Object {
189+
{
190190
"createdAt": Any<Date>,
191191
"id": Any<Number>,
192192
"name": "LeBron James",
@@ -211,7 +211,7 @@ it('will check the values and pass', () => {
211211

212212
// Snapshot
213213
exports[`will check the values and pass 1`] = `
214-
Object {
214+
{
215215
"createdAt": Any<Date>,
216216
"name": 'Bond... James Bond',
217217
}

website/versioned_docs/version-29.5/SnapshotTesting.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ it('will fail every time', () => {
160160

161161
// Snapshot
162162
exports[`will fail every time 1`] = `
163-
Object {
163+
{
164164
"createdAt": 2018-05-19T23:36:09.816Z,
165165
"id": 3,
166166
"name": "LeBron James",
@@ -186,7 +186,7 @@ it('will check the matchers and pass', () => {
186186

187187
// Snapshot
188188
exports[`will check the matchers and pass 1`] = `
189-
Object {
189+
{
190190
"createdAt": Any<Date>,
191191
"id": Any<Number>,
192192
"name": "LeBron James",
@@ -211,7 +211,7 @@ it('will check the values and pass', () => {
211211

212212
// Snapshot
213213
exports[`will check the values and pass 1`] = `
214-
Object {
214+
{
215215
"createdAt": Any<Date>,
216216
"name": 'Bond... James Bond',
217217
}

0 commit comments

Comments
 (0)