Skip to content

Commit

Permalink
test(xxx-intl): update the related tests
Browse files Browse the repository at this point in the history
  • Loading branch information
e-cloud committed Aug 7, 2017
1 parent 5069a69 commit 5c41c3a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/lib/datepicker/calendar.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ describe('MdCalendar', () => {
.querySelector('.mat-calendar-period-button');

intl.switchToYearViewLabel = 'Go to year view?';
intl.changes.emit();
intl.changes.next();
fixture.detectChanges();

expect(button.getAttribute('aria-label')).toBe('Go to year view?');
Expand Down
2 changes: 1 addition & 1 deletion src/lib/datepicker/datepicker.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ describe('MdDatepicker', () => {
const toggle = fixture.debugElement.query(By.css('button')).nativeElement;

intl.openCalendarLabel = 'Open the calendar, perhaps?';
intl.changes.emit();
intl.changes.next();
fixture.detectChanges();

expect(toggle.getAttribute('aria-label')).toBe('Open the calendar, perhaps?');
Expand Down
2 changes: 1 addition & 1 deletion src/lib/paginator/paginator.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ describe('MdPaginator', () => {
const label = fixture.nativeElement.querySelector('.mat-paginator-page-size-label');

intl.itemsPerPageLabel = '1337 items per page';
intl.changes.emit();
intl.changes.next();
fixture.detectChanges();

expect(label.textContent).toBe('1337 items per page');
Expand Down
2 changes: 1 addition & 1 deletion src/lib/sort/sort.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ describe('MdSort', () => {
const button = header.querySelector('.mat-sort-header-button');

intl.sortButtonLabel = () => 'Sort all of the things';
intl.changes.emit();
intl.changes.next();
fixture.detectChanges();

expect(button.getAttribute('aria-label')).toBe('Sort all of the things');
Expand Down

0 comments on commit 5c41c3a

Please sign in to comment.