Fix moment format using month token MM instead of minute mm
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -181,5 +181,20 @@ describe('conformanceStore', () => {
|
||||
];
|
||||
expect(store.conformanceTask).toEqual(['A', 'B']);
|
||||
});
|
||||
|
||||
it('cases getter formats date attributes with correct minute token', () => {
|
||||
store.allCases = [{
|
||||
started_at: '2023-06-15T10:30:00Z',
|
||||
completed_at: '2023-06-15T11:45:00Z',
|
||||
facets: [],
|
||||
attributes: [{
|
||||
type: 'date',
|
||||
value: '2023-06-15T14:30:00Z',
|
||||
}],
|
||||
}];
|
||||
const result = store.cases;
|
||||
// The date attribute should show minutes (30), not month (06)
|
||||
expect(result[0].attributes[0].value).toMatch(/:30:/);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user