Skip to content

Commit

Permalink
test(unit): spec for fullScreen implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasferreiralimax committed Oct 15, 2024
1 parent 2a55714 commit abc8387
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,20 @@ describe('UpWindowAngularComponent', () => {

expect(component.isOpen()).toBeTrue();
}));

it('should apply fullscreen class when fullScreen is true', () => {
component.fullScreen = true;
fixture.detectChanges();

const windowElement = fixture.debugElement.query(By.css('.up-window'));
expect(windowElement.classes['fullscreen']).toBeTrue();
});

it('should not apply fullscreen class when fullScreen is false', () => {
component.fullScreen = false;
fixture.detectChanges();

const windowElement = fixture.debugElement.query(By.css('.up-window'));
expect(windowElement.classes['fullscreen']).toBeFalsy();
});
});

0 comments on commit abc8387

Please sign in to comment.