mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-11 12:12:55 +00:00
test: add type alias annotation test
This commit is contained in:
@@ -35,6 +35,7 @@ import {pairedTagsTest} from './mapping-model/mappings/src/paired-tags';
|
||||
import {filterableTagTest} from './mapping-model/mappings/src/filterable-tag';
|
||||
import {anyUnknownTest} from './mapping-model/mappings/src/any-unknown';
|
||||
import {tagsIgnoreCaseTest} from './mapping-model/mappings/src/tags-ignore-case';
|
||||
import {typeAliasTest} from './mapping-model/mappings/src/type-alias';
|
||||
|
||||
process.on('unhandledRejection', (error: unknown) => {
|
||||
if (error instanceof Error) {
|
||||
@@ -108,6 +109,11 @@ export class MappingSpec {
|
||||
magAppInstance.testInterfaceAgainstPath(typeQueryTest);
|
||||
}*/
|
||||
|
||||
@test
|
||||
async 'Type alias annotations should work'(){
|
||||
magAppInstance.testInterfaceAgainstPath(typeAliasTest);
|
||||
}
|
||||
|
||||
@test
|
||||
async 'Impossible union should cause an error'() {
|
||||
magAppInstance.testInterfaceAgainstPath(impossibleUnionTest);
|
||||
|
||||
Reference in New Issue
Block a user