Skip to content

Commit 6459ca5

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

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
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/datepicker/datepicker.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ describe('MdDatepicker', () => {
571571
const toggle = fixture.debugElement.query(By.css('button')).nativeElement;
572572

573573
intl.openCalendarLabel = 'Open the calendar, perhaps?';
574-
intl.changes.emit();
574+
intl.changes.next();
575575
fixture.detectChanges();
576576

577577
expect(toggle.getAttribute('aria-label')).toBe('Open the calendar, perhaps?');

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)