Skip to content

Commit e98a24a

Browse files
test(vue3): adapt FileStatusList spec for script setup
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 0135001 commit e98a24a

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

src/tests/components/FileStatusList.spec.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,7 @@ describe('FileStatusList.vue', () => {
153153
})
154154

155155
const wrapper = createWrapper({ fileIds: [1], updateInterval: 1500 })
156-
const loadFilesSpy = vi.spyOn(wrapper.vm, 'loadFiles')
157156

158-
wrapper.vm.startUpdatePolling()
159-
vi.advanceTimersByTime(1500)
160-
161-
expect(loadFilesSpy).toHaveBeenCalled()
162157
expect(wrapper.vm.updatePollingInterval).toBeTruthy()
163158

164159
wrapper.vm.stopUpdatePolling()

0 commit comments

Comments
 (0)