@@ -47,14 +47,14 @@ describe('MatPaginator', () => {
47
47
component . pageSize = 10 ;
48
48
component . pageIndex = 1 ;
49
49
fixture . detectChanges ( ) ;
50
- expect ( rangeElement . innerText ) . toBe ( '11 - 20 of 100' ) ;
50
+ expect ( rangeElement . innerText ) . toBe ( '11 – 20 of 100' ) ;
51
51
52
52
// View third page of list of 200, each page contains 20 items.
53
53
component . length = 200 ;
54
54
component . pageSize = 20 ;
55
55
component . pageIndex = 2 ;
56
56
fixture . detectChanges ( ) ;
57
- expect ( rangeElement . innerText ) . toBe ( '41 - 60 of 200' ) ;
57
+ expect ( rangeElement . innerText ) . toBe ( '41 – 60 of 200' ) ;
58
58
59
59
// View first page of list of 0, each page contains 5 items.
60
60
component . length = 0 ;
@@ -68,21 +68,21 @@ describe('MatPaginator', () => {
68
68
component . pageSize = 5 ;
69
69
component . pageIndex = 2 ;
70
70
fixture . detectChanges ( ) ;
71
- expect ( rangeElement . innerText ) . toBe ( '11 - 12 of 12' ) ;
71
+ expect ( rangeElement . innerText ) . toBe ( '11 – 12 of 12' ) ;
72
72
73
73
// View third page of list of 10, each page contains 5 items.
74
74
component . length = 10 ;
75
75
component . pageSize = 5 ;
76
76
component . pageIndex = 2 ;
77
77
fixture . detectChanges ( ) ;
78
- expect ( rangeElement . innerText ) . toBe ( '11 - 15 of 10' ) ;
78
+ expect ( rangeElement . innerText ) . toBe ( '11 – 15 of 10' ) ;
79
79
80
80
// View third page of list of -5, each page contains 5 items.
81
81
component . length = - 5 ;
82
82
component . pageSize = 5 ;
83
83
component . pageIndex = 2 ;
84
84
fixture . detectChanges ( ) ;
85
- expect ( rangeElement . innerText ) . toBe ( '11 - 15 of 0' ) ;
85
+ expect ( rangeElement . innerText ) . toBe ( '11 – 15 of 0' ) ;
86
86
} ) ;
87
87
88
88
it ( 'should show right aria-labels for select and buttons' , ( ) => {
@@ -247,19 +247,19 @@ describe('MatPaginator', () => {
247
247
it ( 'should mark for check when inputs are changed directly' , ( ) => {
248
248
const rangeElement = fixture . nativeElement . querySelector ( '.mat-paginator-range-label' ) ;
249
249
250
- expect ( rangeElement . innerText ) . toBe ( '1 - 10 of 100' ) ;
250
+ expect ( rangeElement . innerText ) . toBe ( '1 – 10 of 100' ) ;
251
251
252
252
paginator . length = 99 ;
253
253
fixture . detectChanges ( ) ;
254
- expect ( rangeElement . innerText ) . toBe ( '1 - 10 of 99' ) ;
254
+ expect ( rangeElement . innerText ) . toBe ( '1 – 10 of 99' ) ;
255
255
256
256
paginator . pageSize = 6 ;
257
257
fixture . detectChanges ( ) ;
258
- expect ( rangeElement . innerText ) . toBe ( '1 - 6 of 99' ) ;
258
+ expect ( rangeElement . innerText ) . toBe ( '1 – 6 of 99' ) ;
259
259
260
260
paginator . pageIndex = 1 ;
261
261
fixture . detectChanges ( ) ;
262
- expect ( rangeElement . innerText ) . toBe ( '7 - 12 of 99' ) ;
262
+ expect ( rangeElement . innerText ) . toBe ( '7 – 12 of 99' ) ;
263
263
264
264
// Having one option and the same page size should remove the select menu
265
265
expect ( fixture . nativeElement . querySelector ( '.mat-select' ) ) . not . toBeNull ( ) ;
0 commit comments