Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexAndBear committed Aug 7, 2024
1 parent b730849 commit bd23fc6
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ vi.mock('../../../../src/composables/resources', async (importOriginal) => ({
useCanBeOpenedWithSecureView: vi.fn()
}))

vi.mock('../../../../src/composables/actions/files', async (importOriginal) => ({
...(await importOriginal<any>()),
useFileActions: vi.fn().mockReturnValue({
getDefaultAction: vi.fn().mockReturnValue({ handler: vi.fn() })
})
}))

const router = {
push: vi.fn(),
afterEach: vi.fn(),
Expand Down Expand Up @@ -267,7 +274,7 @@ const processingResourcesWithAllFields = [
}
] as IncomingShareResource[]

describe.skip('ResourceTable', () => {
describe('ResourceTable', () => {
it('displays all known fields of the resources', () => {
const { wrapper } = getMountedWrapper()
for (const field of fields) {
Expand Down

0 comments on commit bd23fc6

Please sign in to comment.