mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-06 21:42:49 +00:00
refactor: move indexable test files to separate folder
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user