Skip to content

Commit d684875

Browse files
committed
test(xxx-intl): update related tests
1 parent 5069a69 commit d684875

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/lib/datepicker/calendar.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ describe('MdCalendar', () => {
154154
.querySelector('.mat-calendar-period-button');
155155

156156
intl.switchToYearViewLabel = 'Go to year view?';
157-
intl.changes.emit();
157+
intl.changes.next();
158158
fixture.detectChanges();
159159

160160
expect(button.getAttribute('aria-label')).toBe('Go to year view?');

src/lib/paginator/paginator.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ describe('MdPaginator', () => {
9696
const label = fixture.nativeElement.querySelector('.mat-paginator-page-size-label');
9797

9898
intl.itemsPerPageLabel = '1337 items per page';
99-
intl.changes.emit();
99+
intl.changes.next();
100100
fixture.detectChanges();
101101

102102
expect(label.textContent).toBe('1337 items per page');

src/lib/sort/sort.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ describe('MdSort', () => {
148148
const button = header.querySelector('.mat-sort-header-button');
149149

150150
intl.sortButtonLabel = () => 'Sort all of the things';
151-
intl.changes.emit();
151+
intl.changes.next();
152152
fixture.detectChanges();
153153

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

0 commit comments

Comments
 (0)