Skip to content

Commit

Permalink
test: remove unnecessary fakeAsync
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKless committed Jul 26, 2021
1 parent d5d5d8b commit cd9516e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ describe('Checkout Shipping Page Component', () => {
expect(element.querySelector('[role="alert"]')).toBeFalsy();
});

it('should render an error if the user clicks next and has currently no shipping method selected', fakeAsync(() => {
it('should render an error if the user clicks next and has currently no shipping method selected', () => {
when(checkoutFacade.basket$).thenReturn(of({ ...BasketMockData.getBasket(), commonShippingMethod: undefined }));

fixture.detectChanges();
Expand All @@ -92,7 +92,7 @@ describe('Checkout Shipping Page Component', () => {
fixture.detectChanges();

expect(element.querySelector('[role="alert"]')).toBeTruthy();
}));
});

it('should continue checkout if selection is valid', fakeAsync(() => {
fixture.detectChanges();
Expand Down

1 comment on commit cd9516e

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Azure Demo Servers are available:

Please sign in to comment.