Skip to content

Commit ff72388

Browse files
Update 'form shown by default' test'
1 parent d0eaed2 commit ff72388

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/tech-carbon-estimator/tech-carbon-estimator.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ describe('TechCarbonEstimatorComponent', () => {
5454
const formElement = fixture.nativeElement.querySelector('carbon-estimator-form');
5555
const assumptionsElement = fixture.nativeElement.querySelector('assumptions-and-limitation');
5656

57-
expect(formElement).toBeTruthy();
58-
expect(assumptionsElement).toBeFalsy();
57+
expect(formElement.checkVisibility()).toBeTrue();
58+
expect(assumptionsElement.checkVisibility()).toBeFalse();
5959
});
6060

6161
it('should call estimationService.calculateCarbonEstimation when handleFormSubmit is called', () => {

0 commit comments

Comments
 (0)