buefy
Version:
Lightweight UI components for Vue.js (v3) based on Bulma
12 lines (10 loc) • 389 B
text/typescript
import { describe, expect, test } from 'vitest'
import config, { setOptions } from '@utils/config'
describe('Config', () => {
describe('Test options', () => {
test('defaultToastDuration option should be 1000', () => {
setOptions(Object.assign(config, { defaultToastDuration: 1000 }))
expect(config.defaultToastDuration).toBe(1000)
})
})
})