Skip to content

Commit d9bc534

Browse files
committed
fix prettier
1 parent 831cb1c commit d9bc534

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

spec/resolve.spec.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -70,22 +70,22 @@ describe("resolve", () => {
7070

7171
it("should resolve fragment $id in schema refs when root $id not present", () => {
7272
const schema = {
73-
"$schema": "http://json-schema.org/draft-07/schema#",
74-
"definitions": {
75-
"SeeAlso": { "$id": "#SeeAlso", "type": "number" },
76-
"Engine": {
77-
"$id": "#Engine",
78-
"type": "object",
79-
"properties": {
80-
"see_also": { "$ref": "#SeeAlso" }
81-
}
82-
}
83-
}
73+
$schema: "http://json-schema.org/draft-07/schema#",
74+
definitions: {
75+
SeeAlso: {$id: "#SeeAlso", type: "number"},
76+
Engine: {
77+
$id: "#Engine",
78+
type: "object",
79+
properties: {
80+
see_also: {$ref: "#SeeAlso"},
81+
},
82+
},
83+
},
8484
}
8585

8686
instances.forEach((ajv) => {
8787
ajv.addSchema(schema, "yaml.json")
88-
const data = { see_also: 1 }
88+
const data = {see_also: 1}
8989
const validate = ajv.validate("yaml.json#/definitions/Engine", data)
9090
validate.should.equal(true)
9191
})

0 commit comments

Comments
 (0)