(date: Date | string, pattern: any, output: string)
| 72 | |
| 73 | // Check the transformation of a date into a pattern |
| 74 | function expectDateFormatAs(date: Date | string, pattern: any, output: string): void { |
| 75 | expect(formatDate(date, pattern, ɵDEFAULT_LOCALE_ID)).toEqual( |
| 76 | output, |
| 77 | `pattern: "${pattern}"`, |
| 78 | ); |
| 79 | } |
| 80 | |
| 81 | beforeAll(() => { |
| 82 | ɵregisterLocaleData(localeEn, localeEnExtra); |
no test coverage detected
searching dependent graphs…