Skip to content

Commit eb3d9b8

Browse files
Stefan BlaginovStefan Blaginov
authored andcommitted
test(self-extending): remove redundant tests (codepath covered in concerto-cto)
Signed-off-by: Stefan Blaginov <stefanblaginov@gmail.com> Signed-off-by: Stefan Blaginov <Stefan.Blaginov@docusign.com>
1 parent 0d27c88 commit eb3d9b8

6 files changed

+0
-135
lines changed

packages/concerto-core/test/data/parser/classdeclaration.selfextendingasset.cto

Lines changed: 0 additions & 20 deletions
This file was deleted.

packages/concerto-core/test/data/parser/classdeclaration.selfextendingconcept.cto

Lines changed: 0 additions & 20 deletions
This file was deleted.

packages/concerto-core/test/data/parser/classdeclaration.selfextendingevent.cto

Lines changed: 0 additions & 20 deletions
This file was deleted.

packages/concerto-core/test/data/parser/classdeclaration.selfextendingparticipant.cto

Lines changed: 0 additions & 20 deletions
This file was deleted.

packages/concerto-core/test/data/parser/classdeclaration.selfextendingtransaction.cto

Lines changed: 0 additions & 20 deletions
This file was deleted.

packages/concerto-core/test/introspect/classdeclaration.js

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -142,41 +142,6 @@ describe('ClassDeclaration', () => {
142142
const clazz = introspectUtils.loadLastDeclaration('test/data/parser/classdeclaration.scalararray.cto', ConceptDeclaration);
143143
clazz.validate();
144144
});
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(/Class "Self_Extending" cannot extend itself./);
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(/Class "Self_Extending" cannot extend itself./);
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(/Class "Self_Extending" cannot extend itself./);
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(/Class "Self_Extending" cannot extend itself./);
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(/Class "Self_Extending" cannot extend itself./);
179-
});
180145
});
181146

182147
describe('#accept', () => {

0 commit comments

Comments
 (0)