Skip to content

Conversation

josefbogar
Copy link
Contributor

No description provided.

@josefbogar josefbogar marked this pull request as ready for review September 25, 2025 21:14
@jirkapok jirkapok changed the title Added app-settings.component tests #40 Added app-settings.component tests Sep 25, 2025
import { ApplicationSettingsService } from '../shared/ApplicationSettings';
import { MdbModalService } from 'mdb-angular-ui-kit/modal';
import { CardHeaderComponent } from '../card-header/card-header.component';
import { ImperialUnits } from 'projects/scuba-physics/src/public-api';
Copy link
Owner

Choose a reason for hiding this comment

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

import { ImperialUnits } from 'scuba-physics';
may be not possible, if not, you shouldnt access it.

component.use();

component.resetToDefault();
expect(component.settingsForm.value.maxDensity).toBeCloseTo(component.appSettings.defaultMaxGasDensity,1);
Copy link
Owner

Choose a reason for hiding this comment

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

Dont access the component form, if you are using PageObjects use the page object instead.

options = schedules.selected.optionsService;
})

it('Max Gas density', () => {
Copy link
Owner

Choose a reason for hiding this comment

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

Rename the test to more meaningful name.
What does this test verify?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants