UNPKG

@leafygreen-ui/date-utils

Version:
13 lines (10 loc) 300 B
import { Month } from '../constants'; import { newUTC } from '../newUTC'; import { getFullMonthLabel } from '.'; describe('packages/date-utils/getMonthName', () => { test('Jan', () => { expect(getFullMonthLabel(newUTC(2023, Month.January, 5))).toEqual( 'January 2023', ); }); });