Skip to content

Commit 214f9af

Browse files
committed
chore: adapt to vitest v4 changes
1 parent 93b5544 commit 214f9af

File tree

9 files changed

+1
-9
lines changed

9 files changed

+1
-9
lines changed

libs/angular-ecmascript-intl/src/lib/country/intl-country.pipe.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ describe('IntlCountryPipe', () => {
3636
});
3737

3838
it('should handle missing Intl.DisplayNames browser API', () => {
39-
// @ts-expect-error Intl APIs are not expected to be undefined
4039
vi.spyOn(Intl, 'DisplayNames').mockReturnValue(undefined);
4140
const consoleError = vi
4241
.spyOn(console, 'error')

libs/angular-ecmascript-intl/src/lib/currency/intl-currency.pipe.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ describe('IntlCurrencyPipe', () => {
4444
});
4545

4646
it('should handle missing Intl.NumberFormat browser API', () => {
47-
// @ts-expect-error Intl APIs are not expected to be undefined
4847
vi.spyOn(Intl, 'NumberFormat').mockReturnValue(undefined);
4948
const consoleError = vi
5049
.spyOn(console, 'error')

libs/angular-ecmascript-intl/src/lib/date/intl-date.pipe.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ describe('DatePipe', () => {
6060
});
6161

6262
it('should handle missing Intl.DateTimeFormat browser API', () => {
63-
// @ts-expect-error Intl APIs are not expected to be undefined
6463
vi.spyOn(Intl, 'DateTimeFormat').mockReturnValue(undefined);
6564
const consoleError = vi
6665
.spyOn(console, 'error')

libs/angular-ecmascript-intl/src/lib/decimal/intl-decimal.pipe.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ describe('IntlDecimalPipe', () => {
4444
});
4545

4646
it('should handle missing Intl.NumberFormat browser API', () => {
47-
// @ts-expect-error Intl APIs are not expected to be undefined
4847
vi.spyOn(Intl, 'NumberFormat').mockReturnValue(undefined);
4948
const consoleError = vi
5049
.spyOn(console, 'error')

libs/angular-ecmascript-intl/src/lib/duration/intl-duration.pipe.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ describe('IntlDurationPipe', () => {
4747
});
4848

4949
it('should handle missing Intl.NumberFormat browser API', () => {
50-
// @ts-expect-error Intl APIs are not expected to be undefined
50+
// @ts-expect-error Intl APIs are not yet part of the TS types
5151
vi.spyOn(Intl, 'DurationFormat').mockReturnValue(undefined);
5252
const consoleError = vi
5353
.spyOn(console, 'error')

libs/angular-ecmascript-intl/src/lib/language/intl-language.pipe.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ describe('IntlLanguagePipe', () => {
3636
});
3737

3838
it('should handle missing Intl.DisplayNames browser API', () => {
39-
// @ts-expect-error Intl APIs are not expected to be undefined
4039
vi.spyOn(Intl, 'DisplayNames').mockReturnValue(undefined);
4140
const consoleError = vi
4241
.spyOn(console, 'error')

libs/angular-ecmascript-intl/src/lib/list/intl-list.pipe.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ describe('IntlListPipe', () => {
3535
});
3636

3737
it('should handle missing Intl.DisplayNames browser API', () => {
38-
// @ts-expect-error Intl APIs are not expected to be undefined
3938
vi.spyOn(Intl, 'ListFormat').mockReturnValue(undefined);
4039
const consoleError = vi
4140
.spyOn(console, 'error')

libs/angular-ecmascript-intl/src/lib/percent/intl-percent.pipe.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ describe('IntlPercentPipe', () => {
4444
});
4545

4646
it('should handle missing Intl.NumberFormat browser API', () => {
47-
// @ts-expect-error Intl APIs are not expected to be undefined
4847
vi.spyOn(Intl, 'NumberFormat').mockReturnValue(undefined);
4948
const consoleError = vi
5049
.spyOn(console, 'error')

libs/angular-ecmascript-intl/src/lib/unit/intl-unit.pipe.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ describe('IntlUnitPipe', () => {
4444
});
4545

4646
it('should handle missing Intl.NumberFormat browser API', () => {
47-
// @ts-expect-error Intl APIs are not expected to be undefined
4847
vi.spyOn(Intl, 'NumberFormat').mockReturnValue(undefined);
4948
const consoleError = vi
5049
.spyOn(console, 'error')

0 commit comments

Comments
 (0)