feat(animations): allow animation integration support into host params
Closes #9044 Closes #9933
This commit is contained in:
@ -66,21 +66,12 @@ export function main() {
|
||||
});
|
||||
|
||||
it('should throw an error when two or more animation triggers contain the same name', () => {
|
||||
var doCompile = () => {
|
||||
var t1Data: any[] = [];
|
||||
var t2Data: any[] = [];
|
||||
var t1Data: any[] = [];
|
||||
var t2Data: any[] = [];
|
||||
|
||||
expect(() => {
|
||||
compileTriggers([['myTrigger', t1Data], ['myTrigger', t2Data]]);
|
||||
};
|
||||
|
||||
var capturedErrorMessage: string;
|
||||
try {
|
||||
doCompile();
|
||||
} catch (e) {
|
||||
capturedErrorMessage = e.message;
|
||||
}
|
||||
|
||||
expect(capturedErrorMessage)
|
||||
.toMatch(/The animation trigger "myTrigger" has already been registered on "myCmp"/);
|
||||
}).toThrowError(/The animation trigger "myTrigger" has already been registered on "myCmp"/);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user