Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

chore: update switch test

Faisal Amir87fdf4d2b468
diff --git a/web-app/src/components/ui/__tests__/switch.test.tsx b/web-app/src/components/ui/__tests__/switch.test.tsx
index 433d31eac..cb2e9603f 100644
--- a/web-app/src/components/ui/__tests__/switch.test.tsx
+++ b/web-app/src/components/ui/__tests__/switch.test.tsx
@@ -28,7 +28,7 @@ describe('Switch', () => {
render(<Switch />)
const thumb = document.querySelector('[data-slot="switch-thumb"]')
- expect(thumb).toHaveClass('bg-foreground', 'pointer-events-none', 'block', 'size-4', 'rounded-full', 'ring-0', 'transition-transform')
+ expect(thumb).toHaveClass('bg-background', 'pointer-events-none', 'block', 'size-4', 'rounded-full', 'ring-0', 'transition-transform')
})
it('renders with custom className', () => {
@@ -187,6 +187,6 @@ describe('Switch', () => {
render(<Switch checked={false} />)
const switchElement = document.querySelector('[data-slot="switch"]')
- expect(switchElement).toHaveClass('data-[state=unchecked]:bg-background')
+ expect(switchElement).toHaveClass('data-[state=unchecked]:bg-input')
})
})