Skip to content

Commit

Permalink
test: increasing coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
vinicius-guedes-brisa committed Dec 10, 2024
1 parent 58f4efa commit 0db3425
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ describe('IonTourBackdropComponent', () => {
expect(screen.queryByTestId('ion-tour-backdrop')).not.toBeInTheDocument();
});

it('should backdrop with empty clip-path when the step is not active', async () => {
const { fixture } = await sut();
fixture.componentInstance.updateStep(null);
expect(screen.queryByTestId('ion-tour-backdrop')).toHaveStyle({
clipPath: '',
});
});

it('should stop rendering when performFinalTransition is called', async () => {
jest.useFakeTimers();
const { fixture } = await sut({ inTransition: true });
Expand Down

0 comments on commit 0db3425

Please sign in to comment.