Skip to content
Snippets Groups Projects

Saving path component

Merged Maria Elizabeth Pauna Lane requested to merge saving-path-component into development
2 files
+ 130
0
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 25
0
 
import { mount } from '@vue/test-utils'
 
import { describe, it, expect, beforeEach } from 'vitest'
 
import SavingPath from '@/components/SavingPath.vue'
 
import {Card} from "@/components/ui/card/index.js";
 
 
describe('Saving Path: Component testing', () => {
 
let wrapper;
 
beforeEach(() => {
 
wrapper = mount(SavingPath)
 
})
 
 
it('renders the component', () => {
 
expect(wrapper.exists()).toBe(true)
 
})
 
 
it('renders card component', () => {
 
const card = wrapper.findComponent(Card)
 
expect(card.exists()).toBe(true)
 
})
 
 
it('renders nine list items', () => {
 
const listItems = wrapper.findAll('li')
 
expect(listItems.length).toBe(9)
 
})
 
})
 
\ No newline at end of file
Loading