Skip to content

Commit 1284433

Browse files
committed
test: update FileEntry spec for normalized ID comparisons
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 316fd1e commit 1284433

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/tests/views/FilesList/FileEntry.spec.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,6 @@ vi.mock('../../../views/FilesList/FileEntry/FileEntrySigners.vue', () => ({
9494
vi.mock('../../../views/FilesList/FileEntry/FileEntryMixin.js', () => ({
9595
default: {
9696
computed: {
97-
source(this: { source?: FileEntrySource }): FileEntrySource {
98-
return this.source ?? ({} as FileEntrySource)
99-
},
10097
fileExtension() {
10198
return 'pdf'
10299
},
@@ -432,11 +429,8 @@ describe('FileEntry.vue - Individual File Entry', () => {
432429
},
433430
})
434431

435-
wrapper.vm.$refs.actions = {
436-
doRename: vi.fn().mockRejectedValue(new Error('Rename failed')),
437-
}
438-
439432
await wrapper.vm.$nextTick()
433+
vi.spyOn(wrapper.vm.$refs.actions, 'doRename').mockRejectedValueOnce(new Error('Rename failed'))
440434
try {
441435
await wrapper.vm.onRename('newname.pdf')
442436
} catch (e) {}

0 commit comments

Comments
 (0)