Skip to content

Commit

Permalink
using props for files : tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SpliiT committed Feb 3, 2025
1 parent b18c492 commit 0a5bd8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/components/FileSelector.nuxt.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ describe("FileSelector.vue", async () => {
})

await flushPromises()
expect(wrapper.componentVM.files).toEqual(files)
expect(wrapper.componentVM.props.files).toEqual(files)
expect(wrapper.emitted()).toHaveProperty("update_values")
expect(wrapper.emitted().update_values).toHaveLength(1)
expect(wrapper.emitted().update_values[0][0]).toEqual({
Expand All @@ -124,7 +124,7 @@ describe("FileSelector.vue", async () => {

const file_uploader = wrapper.findComponent(FileUploader)
console.log("wrapper", wrapper)
expect(wrapper.vm.files).toEqual(files)
expect(wrapper.vm.props.files).toEqual(files)
const upload_files = vi.spyOn(file_uploader.vm, "upload_files")
expect(upload_files).not.toHaveBeenCalled()
})
Expand Down

0 comments on commit 0a5bd8d

Please sign in to comment.