@@ -63,8 +63,18 @@ describe("schema", function () {
63
63
64
64
assertSchema ( "namespace" , "main.ts" , "Type" ) ;
65
65
66
- assertSchema ( "type-union" , "main.ts" , "MyObject" ) ;
67
- assertSchema ( "type-intersection" , "main.ts" , "MyObject" ) ;
66
+ assertSchema ( "type-anonymous" , "main.ts" , "MyObject" ) ;
67
+ assertSchema ( "type-primitives" , "main.ts" , "MyObject" ) ;
68
+ assertSchema ( "type-nullable" , "main.ts" , "MyObject" ) ;
69
+
70
+ assertSchema ( "optionals" , "main.ts" , "MyObject" ) ;
71
+
72
+ assertSchema ( "comments" , "main.ts" , "MyObject" ) ;
73
+ assertSchema ( "comments-override" , "main.ts" , "MyObject" ) ;
74
+
75
+ /**
76
+ * Type aliases
77
+ */
68
78
69
79
assertSchema ( "type-alias-single" , "main.ts" , "MyString" ) ;
70
80
assertSchema ( "type-aliases" , "main.ts" , "MyObject" , {
@@ -92,16 +102,17 @@ describe("schema", function () {
92
102
useTypeAliasRef : true ,
93
103
useRootRef : true
94
104
} ) ;
105
+ assertSchema ( "type-no-aliases-recursive-topref" , "main.ts" , "MyAlias" , {
106
+ useTypeAliasRef : false ,
107
+ useRootRef : true
108
+ } ) ;
95
109
96
- assertSchema ( "type-anonymous" , "main.ts" , "MyObject" ) ;
97
- assertSchema ( "type-primitives" , "main.ts" , "MyObject" ) ;
98
- assertSchema ( "type-nullable" , "main.ts" , "MyObject" ) ;
99
-
100
- assertSchema ( "optionals" , "main.ts" , "MyObject" ) ;
101
-
102
- assertSchema ( "comments" , "main.ts" , "MyObject" ) ;
103
- assertSchema ( "comments-override" , "main.ts" , "MyObject" ) ;
110
+ /**
111
+ * unions and intersections
112
+ */
104
113
114
+ assertSchema ( "type-union" , "main.ts" , "MyObject" ) ;
115
+ assertSchema ( "type-intersection" , "main.ts" , "MyObject" ) ;
105
116
assertSchema ( "type-union-tagged" , "main.ts" , "Shape" ) ;
106
117
assertSchema ( "type-aliases-union-namespace" , "main.ts" , "MyModel" ) ;
107
118
0 commit comments