Commits
Tim Donohue authored 9ee733ea80a
100 100 | comp.items$.subscribe((result) => { |
101 101 | expect(result.payload.page).toEqual([firstItem]); |
102 102 | }); |
103 103 | }); |
104 104 | |
105 105 | it('should create a list of startsWith options with the earliest year at the end (rounded down by 10)', () => { |
106 106 | expect(comp.startsWithOptions[comp.startsWithOptions.length - 1]).toEqual(1950); |
107 107 | }); |
108 108 | |
109 109 | it('should create a list of startsWith options with the current year first', () => { |
110 - | expect(comp.startsWithOptions[0]).toEqual(new Date().getFullYear()); |
110 + | expect(comp.startsWithOptions[0]).toEqual(new Date().getUTCFullYear()); |
111 111 | }); |
112 112 | }); |