clear-wallet/tests/unit/example.spec.ts
2022-08-26 01:39:02 +03:00

21 lines
429 B
TypeScript

import { mount } from '@vue/test-utils'
import FolderPage from '@/views/FolderPage.vue'
describe('FolderPage.vue', () => {
it('renders folder view', () => {
const mockRoute = {
params: {
id: 'Outbox'
}
}
const wrapper = mount(FolderPage, {
global: {
mocks: {
$route: mockRoute
}
}
})
expect(wrapper.text()).toMatch('Explore UI Components')
})
})