mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-21 09:03:02 +00:00
feat: add support for @inheritTags
This commit is contained in:
committed by
Wieland Schöbl
parent
97f6c42407
commit
485430b7f2
@@ -1,4 +1,3 @@
|
||||
// tslint:disable
|
||||
/*
|
||||
* Copyright (C) 2020 StApps
|
||||
* This program is free software: you can redistribute it and/or modify it
|
||||
@@ -16,6 +15,7 @@
|
||||
import {Logger} from '@openstapps/logger';
|
||||
import {slow, suite, test, timeout} from 'mocha-typescript';
|
||||
import {MapAggTest} from './mapping-model/MapAggTest';
|
||||
import {inheritTagsTest} from './mapping-model/mappings/src/inherit-tags';
|
||||
import {mapExplicitTypesTest} from './mapping-model/mappings/src/map-explicit-types';
|
||||
import {doubleTypeConflictTest} from './mapping-model/mappings/src/double-type-conflict';
|
||||
import {incompatibleTypeTest} from './mapping-model/mappings/src/incompatible-type';
|
||||
@@ -34,6 +34,7 @@ import {inheritedPropertyTest} from './mapping-model/mappings/src/inherited-prop
|
||||
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';
|
||||
|
||||
process.on('unhandledRejection', (error: unknown) => {
|
||||
if (error instanceof Error) {
|
||||
@@ -66,6 +67,11 @@ export class MappingSpec {
|
||||
magAppInstance.testInterfaceAgainstPath(inheritedPropertyTest);
|
||||
}
|
||||
|
||||
@test
|
||||
async 'Tags should ignore case'() {
|
||||
magAppInstance.testInterfaceAgainstPath(tagsIgnoreCaseTest);
|
||||
}
|
||||
|
||||
@test
|
||||
async 'Emums should work'() {
|
||||
// Known issue: Enums only use text
|
||||
@@ -74,7 +80,7 @@ export class MappingSpec {
|
||||
}
|
||||
|
||||
@test
|
||||
'Sortable tag should work'() {
|
||||
async 'Sortable tag should work'() {
|
||||
magAppInstance.testInterfaceAgainstPath(sortableTagTest);
|
||||
}
|
||||
|
||||
@@ -85,6 +91,11 @@ export class MappingSpec {
|
||||
this.testInterfaceAgainstPath(typeWrapperInheritanceTest);
|
||||
}*/
|
||||
|
||||
@test
|
||||
async 'Inherit tags tag should work'() {
|
||||
magAppInstance.testInterfaceAgainstPath(inheritTagsTest);
|
||||
}
|
||||
|
||||
@test
|
||||
async 'Object union types should work'() {
|
||||
magAppInstance.testInterfaceAgainstPath(objectUnionTest);
|
||||
|
||||
Reference in New Issue
Block a user