clear-wallet/tests/unit/example.spec.ts

21 lines
429 B
TypeScript
Raw Normal View History

2022-08-25 22:39:02 +00:00
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')
})
})