@@ -142,41 +142,6 @@ describe('ClassDeclaration', () => {
142
142
const clazz = introspectUtils . loadLastDeclaration ( 'test/data/parser/classdeclaration.scalararray.cto' , ConceptDeclaration ) ;
143
143
clazz . validate ( ) ;
144
144
} ) ;
145
-
146
- it ( 'should throw when an asset is extending itself' , ( ) => {
147
- let asset = introspectUtils . loadLastDeclaration ( 'test/data/parser/classdeclaration.selfextendingasset.cto' , AssetDeclaration ) ;
148
- ( ( ) => {
149
- asset . validate ( ) ;
150
- } ) . should . throw ( / C l a s s " S e l f _ E x t e n d i n g " c a n n o t e x t e n d i t s e l f ./ ) ;
151
- } ) ;
152
-
153
- it ( 'should throw when a concept is extending itself' , ( ) => {
154
- let concept = introspectUtils . loadLastDeclaration ( 'test/data/parser/classdeclaration.selfextendingconcept.cto' , ConceptDeclaration ) ;
155
- ( ( ) => {
156
- concept . validate ( ) ;
157
- } ) . should . throw ( / C l a s s " S e l f _ E x t e n d i n g " c a n n o t e x t e n d i t s e l f ./ ) ;
158
- } ) ;
159
-
160
- it ( 'should throw when an event is extending itself' , ( ) => {
161
- let event = introspectUtils . loadLastDeclaration ( 'test/data/parser/classdeclaration.selfextendingevent.cto' , EventDeclaration ) ;
162
- ( ( ) => {
163
- event . validate ( ) ;
164
- } ) . should . throw ( / C l a s s " S e l f _ E x t e n d i n g " c a n n o t e x t e n d i t s e l f ./ ) ;
165
- } ) ;
166
-
167
- it ( 'should throw when a participant is extending itself' , ( ) => {
168
- let participant = introspectUtils . loadLastDeclaration ( 'test/data/parser/classdeclaration.selfextendingparticipant.cto' , ParticipantDeclaration ) ;
169
- ( ( ) => {
170
- participant . validate ( ) ;
171
- } ) . should . throw ( / C l a s s " S e l f _ E x t e n d i n g " c a n n o t e x t e n d i t s e l f ./ ) ;
172
- } ) ;
173
-
174
- it ( 'should throw when a transaction is extending itself' , ( ) => {
175
- let transaction = introspectUtils . loadLastDeclaration ( 'test/data/parser/classdeclaration.selfextendingtransaction.cto' , TransactionDeclaration ) ;
176
- ( ( ) => {
177
- transaction . validate ( ) ;
178
- } ) . should . throw ( / C l a s s " S e l f _ E x t e n d i n g " c a n n o t e x t e n d i t s e l f ./ ) ;
179
- } ) ;
180
145
} ) ;
181
146
182
147
describe ( '#accept' , ( ) => {
0 commit comments