Skip to content

Commit

Permalink
fix(app): minor test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
9inpachi committed Nov 29, 2020
1 parent ff10477 commit 73e2bf4
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ describe('SSModeComponent', () => {
fixture = TestBed.createComponent(SSModeComponent);
component = fixture.componentInstance;
fixture.detectChanges();
component.ngOnInit();
});

it('should create', () => {
Expand All @@ -29,16 +30,6 @@ describe('SSModeComponent', () => {
expect(component.ssMode).toBe(true);
component.toggleSSMode();
expect(component.ssMode).toBe(false);
});

it('should toggle screenshot mode on click', () => {
component.toggleSSMode();
expect(component.ssMode).toBe(true);

(component as any).onDocumentClick();
const event = new Event('fullscreenchange');
document.dispatchEvent(event);

expect(component.ssMode).toBe(false);
});
});

0 comments on commit 73e2bf4

Please sign in to comment.