Skip to content

Commit

Permalink
[MNT-23433] linting issue resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
AnukritiGL committed Dec 28, 2023
1 parent 4f55b0f commit 8c79fc8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/core/src/lib/viewer/components/viewer.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -425,22 +425,19 @@ describe('ViewerComponent', () => {
});

describe('Info Button', () => {

const infoButton = () => element.querySelector<HTMLButtonElement>('[data-automation-id="adf-toolbar-sidebar"]');

it('should NOT display info button on the right side', () => {
component.allowRightSidebar = true;
component.hideInfoButton = true;

fixture.detectChanges();

expect(infoButton()).toBeNull();
expect(infoButton()).toBeNull();
});

it('should display info button on the right side', () => {
component.allowRightSidebar = true;
component.hideInfoButton = false;

fixture.detectChanges();

expect(infoButton()).not.toBeNull();
Expand Down

0 comments on commit 8c79fc8

Please sign in to comment.