generated from Seekra/repository-template
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
312734233b
|
@@ -35,16 +35,7 @@ const getWrapper = function getWrapper ({ i18n = 'switch1', translations = {} }
|
|||||||
|
|
||||||
describe('Switch', () => {
|
describe('Switch', () => {
|
||||||
test('shows value from store', async () => {
|
test('shows value from store', async () => {
|
||||||
const wrapper = mountComponent(Switch, {
|
const wrapper = getWrapper();
|
||||||
attrs: {
|
|
||||||
setting: {
|
|
||||||
name: 'switch',
|
|
||||||
i18n: 'switch1',
|
|
||||||
type: 'bool'
|
|
||||||
},
|
|
||||||
path: 'switch'
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
const store = useSettingsStore();
|
const store = useSettingsStore();
|
||||||
store.set('switch', true);
|
store.set('switch', true);
|
||||||
|
|||||||
Reference in New Issue
Block a user