This commit is contained in:
@@ -7,7 +7,7 @@ import { windows } from '@/utils/helpers'
|
||||
const getWrapper = () => {
|
||||
return shallowMount(TimeWindows, {
|
||||
props: {
|
||||
activeWindow: windows[1],
|
||||
modelValue: windows[1],
|
||||
windows
|
||||
}
|
||||
})
|
||||
@@ -25,7 +25,7 @@ describe('TimeWindows', () => {
|
||||
const wrapper = getWrapper()
|
||||
const listItems = wrapper.findAll('li')
|
||||
await listItems[0]?.trigger('click')
|
||||
const event = (wrapper.emitted('set-window') || [])[0][0] as Window
|
||||
expect(event.label).toEqual('afgelopen uur')
|
||||
const selectedWindow = (wrapper.emitted('update:modelValue') || [])[0][0] as Window
|
||||
expect(selectedWindow.label).toEqual('afgelopen uur')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user