Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Jun 4, 2019
1 parent 9e03a4e commit 97a9f44
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions test/config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import { Config, DEFAULT_CONFIG, PartialConfig } from "../src/Config";
import { SchemaGenerator } from "../src/SchemaGenerator";

const validator = new Ajv();
const metaSchema: object = require("ajv/lib/refs/json-schema-draft-06.json");
validator.addMetaSchema(metaSchema);

const basePath = "test/config";

Expand Down
2 changes: 0 additions & 2 deletions test/valid-data.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import { Config } from "../src/Config";
import { SchemaGenerator } from "../src/SchemaGenerator";

const validator = new Ajv();
const metaSchema: object = require("ajv/lib/refs/json-schema-draft-06.json");
validator.addMetaSchema(metaSchema);

const basePath = "test/valid-data";

Expand Down
2 changes: 1 addition & 1 deletion test/valid-data/type-intersection-union/schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$ref": "#/definitions/MyObject",
"$schema": "http://json-schema.org/draft-06/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"MyObject": {
"anyOf": [
Expand Down

0 comments on commit 97a9f44

Please sign in to comment.