Skip to content

Commit

Permalink
More tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Dec 30, 2022
1 parent 87bb5b7 commit a13894f
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
30 changes: 30 additions & 0 deletions tests/format/json/json/__snapshots__/jsfmt.spec.js.snap
Expand Up @@ -2176,6 +2176,9 @@ trailingComma: "all"
=====================================input======================================
{
a: '',
null: '',
true: '',
"string": "",
0: '',
1e2: '',
1.0e+2: '',
Expand All @@ -2199,6 +2202,9 @@ trailingComma: "all"
=====================================output=====================================
{
"a": "",
"null": "",
"true": "",
"string": "",
"0": "",
1e2: "",
1.0e2: "",
Expand Down Expand Up @@ -2231,6 +2237,9 @@ trailingComma: "all"
=====================================input======================================
{
a: '',
null: '',
true: '',
"string": "",
0: '',
1e2: '',
1.0e+2: '',
Expand All @@ -2254,6 +2263,9 @@ trailingComma: "all"
=====================================output=====================================
{
a: "",
null: "",
true: "",
string: "",
0: "",
1e2: "",
1.0e2: "",
Expand Down Expand Up @@ -2285,6 +2297,9 @@ printWidth: 80
=====================================input======================================
{
a: '',
null: '',
true: '',
"string": "",
0: '',
1e2: '',
1.0e+2: '',
Expand All @@ -2308,6 +2323,9 @@ printWidth: 80
=====================================output=====================================
{
"a": "",
"null": "",
"true": "",
"string": "",
"0": "",
1e2: "",
1.0e2: "",
Expand Down Expand Up @@ -2339,6 +2357,9 @@ printWidth: 80
=====================================input======================================
{
a: '',
null: '',
true: '',
"string": "",
0: '',
1e2: '',
1.0e+2: '',
Expand All @@ -2362,6 +2383,9 @@ printWidth: 80
=====================================output=====================================
{
a: "",
null: "",
true: "",
string: "",
0: "",
1e2: "",
1.0e2: "",
Expand Down Expand Up @@ -2393,6 +2417,9 @@ printWidth: 80
=====================================input======================================
{
a: '',
null: '',
true: '',
"string": "",
0: '',
1e2: '',
1.0e+2: '',
Expand All @@ -2416,6 +2443,9 @@ printWidth: 80
=====================================output=====================================
{
"a": "",
"null": "",
"true": "",
"string": "",
"0": "",
"100": "",
"100": "",
Expand Down
3 changes: 3 additions & 0 deletions tests/format/json/json/propertyKey.json
@@ -1,5 +1,8 @@
{
a: '',
null: '',
true: '',
"string": "",
0: '',
1e2: '',
1.0e+2: '',
Expand Down

0 comments on commit a13894f

Please sign in to comment.