2026-03-27 16:16:57 +00:00
|
|
|
import { describe, it, expect } from 'vitest'
|
|
|
|
|
import { shallowMount } from '@vue/test-utils'
|
2026-03-12 00:19:30 +00:00
|
|
|
import { createPinia, setActivePinia } from 'pinia'
|
|
|
|
|
import Settings from '../Settings.vue'
|
|
|
|
|
|
|
|
|
|
describe('Settings View', () => {
|
2026-03-27 16:16:57 +00:00
|
|
|
it('renders AccountSection and SystemSection', () => {
|
|
|
|
|
setActivePinia(createPinia())
|
|
|
|
|
const wrapper = shallowMount(Settings)
|
|
|
|
|
expect(wrapper.findComponent({ name: 'AccountSection' }).exists()).toBe(true)
|
|
|
|
|
expect(wrapper.findComponent({ name: 'SystemSection' }).exists()).toBe(true)
|
2026-03-12 00:19:30 +00:00
|
|
|
})
|
|
|
|
|
})
|