import { ColumnType } from '../../types'; import { transformCellValueToDate } from './transformCellValueToDate'; describe('transformCellValueToDate', () => { it('transforms one of the new back-end supported date formats', () => { expect( new Date( transformCellValueToDate({ cellValue: '2021年5月17日', typeOptions: { type: ColumnType.TEXT, }, }) ?? '' ).toDateString() ).toBe('Mon May 17 2021'); }); });