Skip to content

Commit

Permalink
Adiciona teste para método de expandir descrição
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoCarlito committed Nov 16, 2023
1 parent a2cf905 commit 71cd86e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/app/pages/video-viewer/video-viewer.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,17 @@ describe('VideoViewerComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});

it('should toggle mostrarCompleta property', () => {
expect(component.mostrarCompleta).toBe(false);

component.expandirDescricao();

expect(component.mostrarCompleta).toBe(true);

component.expandirDescricao();

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

});

0 comments on commit 71cd86e

Please sign in to comment.