MCPcopy Index your code
hub / github.com/angular/angular / expectDateFormatAs

Function expectDateFormatAs

packages/common/test/i18n/format_date_spec.ts:74–79  ·  view source on GitHub ↗
(date: Date | string, pattern: any, output: string)

Source from the content-addressed store, hash-verified

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);

Callers 1

Calls 1

formatDateFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…