mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
remove duplicated test (#5536)
This commit is contained in:
@@ -43,18 +43,6 @@ describe('CheckAllowableOperationDirective', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe('HTML nativeElement as subject', () => {
|
describe('HTML nativeElement as subject', () => {
|
||||||
|
|
||||||
it('updates element once it is loaded', () => {
|
|
||||||
const directive = new CheckAllowableOperationDirective(null, null, null, changeDetectorMock);
|
|
||||||
spyOn(directive, 'updateElement').and.stub();
|
|
||||||
|
|
||||||
const nodes = [{}, {}];
|
|
||||||
const change = new SimpleChange([], nodes, false);
|
|
||||||
directive.ngOnChanges({ nodes: change });
|
|
||||||
|
|
||||||
expect(directive.updateElement).toHaveBeenCalled();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('updates element on nodes change', () => {
|
it('updates element on nodes change', () => {
|
||||||
const directive = new CheckAllowableOperationDirective(null, null, null, changeDetectorMock);
|
const directive = new CheckAllowableOperationDirective(null, null, null, changeDetectorMock);
|
||||||
spyOn(directive, 'updateElement').and.stub();
|
spyOn(directive, 'updateElement').and.stub();
|
||||||
|
Reference in New Issue
Block a user