Skip to content

Commit

Permalink
test: Update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Nov 30, 2020
1 parent c65ced1 commit 652beab
Show file tree
Hide file tree
Showing 8 changed files with 253 additions and 78 deletions.
10 changes: 9 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
{
"singleQuote": true,
"trailingComma": "all"
"trailingComma": "all",
"overrides": [
{
"files": "test/output/*.json",
"options": {
"parser": "json-stringify"
}
}
]
}
12 changes: 9 additions & 3 deletions test/output/complex-models.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
"type": "array"
}
},
"required": ["id"]
"required": [
"id"
]
},
"Project": {
"description": "A Project object.",
Expand All @@ -49,7 +51,9 @@
"type": "integer"
}
},
"required": ["id"]
"required": [
"id"
]
}
},
"info": {
Expand All @@ -76,7 +80,9 @@
}
}
},
"tags": ["projects"]
"tags": [
"projects"
]
}
}
},
Expand Down
6 changes: 4 additions & 2 deletions test/output/custom.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
"paths": {
"/custom": {
"get": {
"x-custom": 3,
"responses": {
"200": {
"description": "Return all pets"
}
},
"tags": ["custom"]
"tags": [
"custom"
],
"x-custom": 3
}
}
},
Expand Down
8 changes: 6 additions & 2 deletions test/output/embedded.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,14 @@
"description": "Return all pets"
}
},
"tags": ["pets"]
"tags": [
"pets"
]
}
}
},
"schemes": ["https"],
"schemes": [
"https"
],
"swagger": "2.0"
}
13 changes: 10 additions & 3 deletions test/output/fixable.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
"type": "string"
}
},
"required": ["required"]
"required": [
"required"
]
}
},
"info": {
Expand Down Expand Up @@ -77,7 +79,10 @@
"description": "Return all pets"
}
},
"tags": ["my/pets", "pets"]
"tags": [
"my/pets",
"pets"
]
}
},
"/stores": {
Expand All @@ -87,7 +92,9 @@
"description": "Return all stores"
}
},
"tags": ["our/stores"]
"tags": [
"our/stores"
]
}
}
},
Expand Down
8 changes: 6 additions & 2 deletions test/output/minimal.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
"description": "Return all pets"
}
},
"tags": ["pets"]
"tags": [
"pets"
]
}
},
"/stores": {
Expand All @@ -21,7 +23,9 @@
"description": "Return all stores"
}
},
"tags": ["stores"]
"tags": [
"stores"
]
}
}
},
Expand Down
Loading

0 comments on commit 652beab

Please sign in to comment.