example.spec.ts 429 B

1234567891011121314151617181920
  1. import { mount } from '@vue/test-utils'
  2. import FolderPage from '@/views/FolderPage.vue'
  3. describe('FolderPage.vue', () => {
  4. it('renders folder view', () => {
  5. const mockRoute = {
  6. params: {
  7. id: 'Outbox'
  8. }
  9. }
  10. const wrapper = mount(FolderPage, {
  11. global: {
  12. mocks: {
  13. $route: mockRoute
  14. }
  15. }
  16. })
  17. expect(wrapper.text()).toMatch('Explore UI Components')
  18. })
  19. })