style: apply prettier formatting
This commit is contained in:
1 parent
33c73cf620
commit
5eadef5371
2 files changed
+21
-22
No files matched your search
@@ -168,10 +168,7 @@ export function HistoryBoard() {
|
||||
<Button tone="danger" onClick={() => void handleDelete(transfer.id)}>
|
||||
{canManageTransfer ? 'Confirm delete' : 'Confirm forget'}
|
||||
</Button>
|
||||
<Button
|
||||
tone="ghost"
|
||||
onClick={() => setPendingDeleteTransferId(undefined)}
|
||||
>
|
||||
<Button tone="ghost" onClick={() => setPendingDeleteTransferId(undefined)}>
|
||||
Cancel
|
||||
</Button>
|
||||
</>
|
||||
|
||||
@@ -20,15 +20,16 @@ describe('formatLocalDateTime', () => {
|
||||
it('prefers navigator.language when navigator.languages is empty', () => {
|
||||
let observedLocales: Intl.LocalesArgument | undefined
|
||||
let observedOptions: Intl.DateTimeFormatOptions | undefined
|
||||
const DateTimeFormatMock = vi
|
||||
.spyOn(Intl, 'DateTimeFormat')
|
||||
.mockImplementation(function (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions) {
|
||||
observedLocales = locales
|
||||
observedOptions = options
|
||||
return {
|
||||
format: () => 'formatted',
|
||||
} as Intl.DateTimeFormat
|
||||
})
|
||||
const DateTimeFormatMock = vi.spyOn(Intl, 'DateTimeFormat').mockImplementation(function (
|
||||
locales?: Intl.LocalesArgument,
|
||||
options?: Intl.DateTimeFormatOptions,
|
||||
) {
|
||||
observedLocales = locales
|
||||
observedOptions = options
|
||||
return {
|
||||
format: () => 'formatted',
|
||||
} as Intl.DateTimeFormat
|
||||
})
|
||||
|
||||
Object.defineProperty(globalThis, 'navigator', {
|
||||
configurable: true,
|
||||
@@ -50,15 +51,16 @@ describe('formatLocalDateTime', () => {
|
||||
it('falls back to an undefined locale list when navigator is unavailable', () => {
|
||||
let observedLocales: Intl.LocalesArgument | undefined
|
||||
let observedOptions: Intl.DateTimeFormatOptions | undefined
|
||||
const DateTimeFormatMock = vi
|
||||
.spyOn(Intl, 'DateTimeFormat')
|
||||
.mockImplementation(function (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions) {
|
||||
observedLocales = locales
|
||||
observedOptions = options
|
||||
return {
|
||||
format: () => 'formatted',
|
||||
} as Intl.DateTimeFormat
|
||||
})
|
||||
const DateTimeFormatMock = vi.spyOn(Intl, 'DateTimeFormat').mockImplementation(function (
|
||||
locales?: Intl.LocalesArgument,
|
||||
options?: Intl.DateTimeFormatOptions,
|
||||
) {
|
||||
observedLocales = locales
|
||||
observedOptions = options
|
||||
return {
|
||||
format: () => 'formatted',
|
||||
} as Intl.DateTimeFormat
|
||||
})
|
||||
|
||||
Object.defineProperty(globalThis, 'navigator', {
|
||||
configurable: true,
|
||||
|
||||
Reference in new issue
Block a user