mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-23 10:02:51 +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!`);
|
fail(`'${thingName}'#'${property.name}' union type '${nestedType.type}' is not handled by this test!`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
for (const thingName of SchemaSpec.thingNames) {
|
for (const thingName of SchemaSpec.thingNames) {
|
||||||
const thingReflection = SchemaSpec.objects[`${thingName}`];
|
const thingReflection = SchemaSpec.objects[`${thingName}`];
|
||||||
@@ -318,7 +318,10 @@ export class SchemaSpec {
|
|||||||
|
|
||||||
@test
|
@test
|
||||||
async 'validate against test files'() {
|
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;
|
let unexpected = false;
|
||||||
Object.keys(errorsPerFile).forEach((file) => {
|
Object.keys(errorsPerFile).forEach((file) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user