Skip to content

Commit

Permalink
chore: format files
Browse files Browse the repository at this point in the history
  • Loading branch information
hirsch88 committed Sep 24, 2024
1 parent de8d619 commit 61be630
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
5 changes: 1 addition & 4 deletions test/angular/base/app/cypress/e2e/bal-segment.spec.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ describe('bal-segment', () => {
cy.getByTestId('segment').getByRole('label', { name: 'Kiwi' }).click()
cy.get('body').click(0, 0)

cy.getByLabelText('Segment Label')
.shouldBeInvalid()
.getDescribingElement()
.contains('This field is required')
cy.getByLabelText('Segment Label').shouldBeInvalid().getDescribingElement().contains('This field is required')

cy.getByTestId('segment').getByRole('label', { name: 'Kiwi' }).click()

Expand Down
2 changes: 1 addition & 1 deletion test/angular/base/app/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export class AppComponent {
segment: new FormControl('Kiwi', [Validators.required]),
})

constructor(private modalService: BalModalService) { }
constructor(private modalService: BalModalService) {}

updateValue(option: UpdateControl) {
const control = this.myForm.get(option.name)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ import { UpdateControl } from '../app.component'
Update Segment
</bal-button>
<bal-button color="tertiary" (click)="form.get('segment')?.enable()">Enable Segment</bal-button>
<bal-button color="tertiary" (click)="form.get('segment')?.disable()"
>Disable Segment</bal-button
>
<bal-button color="tertiary" (click)="form.get('segment')?.disable()">Disable Segment</bal-button>
</bal-button-group>
</bal-card-content>
</bal-card>
Expand Down

0 comments on commit 61be630

Please sign in to comment.