test: add type alias annotation test

This commit is contained in:
Wieland Schöbl
2020-11-25 11:05:22 +01:00
parent abdd62a4db
commit 058de208db
36 changed files with 119 additions and 64 deletions

View File

@@ -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);