Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
xelaint committed Dec 15, 2023
1 parent f6ff2db commit 22b8a80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions libs/design/toast/src/toast/toast.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,8 @@ describe('DaffToastComponent', () => {
expect(de.nativeElement.classList.contains('daff-warn')).toEqual(true);
});
});

it('should have a role of status', () => {
expect(component.role).toBe('status');
});
});
2 changes: 1 addition & 1 deletion libs/design/toast/src/toast/toast.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class DaffToastComponent
@HostBinding('class.daff-toast') class = true;

/** @docs-private */
@HostBinding('attr.role') ariaLive = 'status';
@HostBinding('attr.role') role = 'status';

@ContentChild(DaffToastActionsDirective)
_actions: DaffToastActionsDirective;
Expand Down

0 comments on commit 22b8a80

Please sign in to comment.