Skip to content

Commit 901ec42

Browse files
test(FilesList): fix mdi icon names to match component
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent c495ba3 commit 901ec42

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ describe('FilesList.vue rendering rules', () => {
156156
await flushPromises()
157157

158158
expect(wrapper.vm.mdiFolder).toBeTruthy()
159-
expect(wrapper.vm.mdiViewGrid).toBeTruthy()
160-
expect(wrapper.vm.mdiViewList).toBeTruthy()
159+
expect(wrapper.vm.mdiViewGridOutline).toBeTruthy()
160+
expect(wrapper.vm.mdiFormatListBulletedSquare).toBeTruthy()
161161
expect(wrapper.vm.mdiChevronDown).toBeTruthy()
162162
expect(wrapper.vm.mdiChevronUp).toBeTruthy()
163163
expect(wrapper.vm.mdiReload).toBeTruthy()
@@ -265,7 +265,7 @@ describe('FilesList.vue rendering rules', () => {
265265

266266
const gridButton = wrapper.find('.files-list__header-grid-button')
267267
const iconWithPath = gridButton.findAll('.nc-icon').find((node) => !!node.attributes('data-path'))
268-
expect(iconWithPath?.attributes('data-path')).toBe(wrapper.vm.mdiViewGrid)
268+
expect(iconWithPath?.attributes('data-path')).toBe(wrapper.vm.mdiViewGridOutline)
269269
})
270270

271271
it('renders list toggle icon path when in grid mode', async () => {
@@ -279,6 +279,6 @@ describe('FilesList.vue rendering rules', () => {
279279

280280
const gridButton = wrapper.find('.files-list__header-grid-button')
281281
const iconWithPath = gridButton.findAll('.nc-icon').find((node) => !!node.attributes('data-path'))
282-
expect(iconWithPath?.attributes('data-path')).toBe(wrapper.vm.mdiViewList)
282+
expect(iconWithPath?.attributes('data-path')).toBe(wrapper.vm.mdiFormatListBulletedSquare)
283283
})
284284
})

0 commit comments

Comments
 (0)