Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Commit

Permalink
pr feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Kingman committed Oct 29, 2020
1 parent 6aa21e3 commit a18319f
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ import {
} from '@angular/core';

import {
expect
expect,
expectAsync
} from '@skyux-sdk/testing';

import {
Expand Down Expand Up @@ -1079,16 +1080,16 @@ describe('File attachment', () => {

it('should pass accessibility', async(() => {
fixture.detectChanges();
fixture.whenStable().then(() => {
expect(fixture.nativeElement).toBeAccessible();
fixture.whenStable().then(async () => {
await expectAsync(fixture.nativeElement).toBeAccessible();
});
}));

it('should pass accessibility when label changes', async(() => {
it('should pass accessibility when label does not match the button text', async(() => {
fixture.componentInstance.labelText = 'Something different';
fixture.detectChanges();
fixture.whenStable().then(() => {
expect(fixture.nativeElement).toBeAccessible();
fixture.whenStable().then(async () => {
await expectAsync(fixture.nativeElement).toBeAccessible();
});
}));
});
Expand Down

0 comments on commit a18319f

Please sign in to comment.