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