Skip to content

Commit

Permalink
Rebuild snapshots using latest AVA
Browse files Browse the repository at this point in the history
  • Loading branch information
novemberborn committed Mar 1, 2021
1 parent ab3ff74 commit 53f11aa
Show file tree
Hide file tree
Showing 7 changed files with 1,139 additions and 1,139 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"devDependencies": {
"@novemberborn/eslint-plugin-as-i-preach": "^12.0.0",
"ava": "^3.8.2",
"ava": "^3.15.0",
"c8": "^7.1.2",
"eslint": "^6.8.0",
"eslint-plugin-ava": "^10.3.0",
Expand Down
1,376 changes: 688 additions & 688 deletions test/snapshots/diff.js.md

Large diffs are not rendered by default.

Binary file modified test/snapshots/diff.js.snap
Binary file not shown.
830 changes: 415 additions & 415 deletions test/snapshots/format.js.md

Large diffs are not rendered by default.

Binary file modified test/snapshots/format.js.snap
Binary file not shown.
70 changes: 35 additions & 35 deletions test/snapshots/max-depth.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,41 @@ The actual snapshot is saved in `max-depth.js.snap`.

Generated by [AVA](https://avajs.dev).

## format() respects maxDepth option

> Snapshot 1
`{␊
one: {␊
arr: [␊
Object { … },␊
],␊
map: Map {␊
Object { … } => Object { … },␊
},␊
set: Set {␊
Object { … },␊
},␊
two: {␊
arr: [],␊
arr2: Array [ … ],␊
date: Date 1969-07-20 20:17:40 UTC {},␊
date2: Date 1969-07-20 20:17:40 UTC { … },␊
error: Error { … },␊
fn: Function fn {},␊
fn2: Function { … },␊
map: Map {},␊
map2: Map { … },␊
obj: {},␊
regexp: /foo/,␊
regexp2: RegExp { /foo/ … },␊
set: Set {},␊
set2: Set { … },␊
three: Object { … },␊
},␊
},␊
}`

## diff() respects maxDepth option for equal parts

> Snapshot 1
Expand Down Expand Up @@ -53,41 +88,6 @@ Generated by [AVA](https://avajs.dev).
},␊
}`

## format() respects maxDepth option

> Snapshot 1
`{␊
one: {␊
arr: [␊
Object { … },␊
],␊
map: Map {␊
Object { … } => Object { … },␊
},␊
set: Set {␊
Object { … },␊
},␊
two: {␊
arr: [],␊
arr2: Array [ … ],␊
date: Date 1969-07-20 20:17:40 UTC {},␊
date2: Date 1969-07-20 20:17:40 UTC { … },␊
error: Error { … },␊
fn: Function fn {},␊
fn2: Function { … },␊
map: Map {},␊
map2: Map { … },␊
obj: {},␊
regexp: /foo/,␊
regexp2: RegExp { /foo/ … },␊
set: Set {},␊
set2: Set { … },␊
three: Object { … },␊
},␊
},␊
}`

## properties with increased indentation respect the maxDepth when formatted

> Snapshot 1
Expand Down
Binary file modified test/snapshots/max-depth.js.snap
Binary file not shown.

0 comments on commit 53f11aa

Please sign in to comment.