mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
feat(helm): helm actions [r8s-259] (#715)
Co-authored-by: James Player <james.player@portainer.io> Co-authored-by: Cara Ryan <cara.ryan@portainer.io> Co-authored-by: stevensbkang <skan070@gmail.com>
This commit is contained in:
parent
dfa32b6755
commit
4ee349bd6b
117 changed files with 4161 additions and 696 deletions
18
app/setup-tests/mock-localizeDate.ts
Normal file
18
app/setup-tests/mock-localizeDate.ts
Normal file
|
@ -0,0 +1,18 @@
|
|||
export function mockLocalizeDate() {
|
||||
// Mock localizeDate to always use en-US and UTC
|
||||
vi.mock('@/react/common/date-utils', () => ({
|
||||
localizeDate: (date: Date) =>
|
||||
date
|
||||
.toLocaleString('en-US', {
|
||||
timeZone: 'UTC',
|
||||
year: 'numeric',
|
||||
month: 'short',
|
||||
day: 'numeric',
|
||||
hour: 'numeric',
|
||||
minute: '2-digit',
|
||||
hour12: true,
|
||||
})
|
||||
.replace('am', 'AM')
|
||||
.replace('pm', 'PM'),
|
||||
}));
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue