diff --git a/package.json b/package.json index 5ac1ff78..7c835c3e 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "scripts": { "build": "npm run build-sources && npm test && npm run lint", "build-sources": "tsc -p ./tsconfig.json", - "build-tests": "tsc -p ./tsconfig.test.json", + "build-tests": "rm -rf ./dist_tests && tsc -p ./tsconfig.test.json", "watch": "tsc -p ./tsconfig.json --watch && tsc -p ./tsconfig.test.json --watch", "lint": "tslint -c tslint.json src/*.ts", "test": "npm run build-tests && ava", diff --git a/test/cases/anyOf.ts b/test/cases/anyOf.ts index 0037817d..c5f4c984 100644 --- a/test/cases/anyOf.ts +++ b/test/cases/anyOf.ts @@ -35,7 +35,6 @@ export var schema = { "additionalProperties": false } - export var types = `export interface Foo { a: string; b?: number; diff --git a/test/cases/enum.ts b/test/cases/enum.ts index 9cfab1ce..f84a6ed6 100644 --- a/test/cases/enum.ts +++ b/test/cases/enum.ts @@ -30,11 +30,11 @@ export var schema = { "namedIntegerEnum": { "type": "integer", "enum": [1, 2, 3], - "tsEnumNames": ["One","Two","Three"] + "tsEnumNames": ["One", "Two", "Three"] }, "impliedNamedIntegerEnum": { "enum": [4, 5, 6], - "tsEnumNames": ["Four","Five","Six"] + "tsEnumNames": ["Four", "Five", "Six"] }, "impliedHeterogeneousEnum": { "enum": [-20.1, null, "foo", false] diff --git a/test/cases/json-schema.ts b/test/cases/json-schema.ts index 63af3f4b..bc7f4cfd 100644 --- a/test/cases/json-schema.ts +++ b/test/cases/json-schema.ts @@ -147,7 +147,7 @@ export var schema = { "exclusiveMinimum": [ "minimum" ] }, "default": {} -}; +} export var configurations = [ {