Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nbonamy committed May 16, 2024
1 parent 0a20504 commit fcd9d64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/components/settings.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { mount, VueWrapper, enableAutoUnmount } from '@vue/test-utils'
import { store } from '../../src/services/store'
import Settings from '../../src/screens/Settings.vue'
import defaults from '../../defaults/settings.json'
import { availableEngines } from '../../src/services/llm'

import useEventBus from '../../src/composables/useEventBus'
const { emitEvent } = useEventBus()
Expand Down Expand Up @@ -109,7 +110,7 @@ test('Settings General', async () => {
expect(tab.findAll('.group')).toHaveLength(4)

expect(store.config.llm.engine).not.toBe('anthropic')
expect(tab.findAll('.group.engine select option')).toHaveLength(5)
expect(tab.findAll('.group.engine select option')).toHaveLength(availableEngines.length)
tab.find('.group.engine select').setValue('anthropic')
expect(store.config.llm.engine).toBe('anthropic')
expect(window.api.runAtLogin.set).toHaveBeenCalledOnce()
Expand Down

0 comments on commit fcd9d64

Please sign in to comment.