mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 10:28:10 +08:00
chore(web): new lint setup (#30020)
Co-authored-by: yyh <yuanyouhuilyz@gmail.com>
This commit is contained in:
@ -1,11 +1,12 @@
|
||||
import React from 'react'
|
||||
import { render, screen } from '@testing-library/react'
|
||||
import React from 'react'
|
||||
import TimezoneLabel from '../index'
|
||||
|
||||
// Mock the convertTimezoneToOffsetStr function
|
||||
vi.mock('@/app/components/base/date-and-time-picker/utils/dayjs', () => ({
|
||||
convertTimezoneToOffsetStr: (timezone?: string) => {
|
||||
if (!timezone) return 'UTC+0'
|
||||
if (!timezone)
|
||||
return 'UTC+0'
|
||||
|
||||
// Mock implementation matching the actual timezone conversions
|
||||
const timezoneOffsets: Record<string, string> = {
|
||||
|
||||
Reference in New Issue
Block a user