refactor: move indexable test files to separate folder

This commit is contained in:
Wieland Schöbl
2021-08-17 17:46:46 +02:00
parent 83f00f40bf
commit d56c3d11a8
50 changed files with 5 additions and 2 deletions

View File

@@ -230,7 +230,7 @@ export class SchemaSpec {
fail(`'${thingName}'#'${property.name}' union type '${nestedType.type}' is not handled by this test!`);
}
}
}
};
for (const thingName of SchemaSpec.thingNames) {
const thingReflection = SchemaSpec.objects[`${thingName}`];
@@ -318,7 +318,10 @@ export class SchemaSpec {
@test
async 'validate against test files'() {
const errorsPerFile = await validateFiles(resolve('lib', 'schema'), resolve('test', 'resources'));
const errorsPerFile = {
...await validateFiles(resolve('lib', 'schema'), resolve('test', 'resources')),
...await validateFiles(resolve('lib', 'schema'), resolve('test', 'resources', 'indexable')),
};
let unexpected = false;
Object.keys(errorsPerFile).forEach((file) => {