remove duplicated test (#5536)

This commit is contained in:
Eugenio Romano
2020-03-06 00:18:56 +00:00
committed by GitHub
parent 6db04f1887
commit 2e976d013b

View File

@@ -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();