Passed
Pull Request — master (#25)
by Hamed
01:17
created

raw_code/vite/5.0.10/Panel/src/components/__tests__/HelloWorld.spec.js   A

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 11
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 7
mnd 0
bc 0
fnc 2
dl 0
loc 11
rs 10
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
1
import { describe, it, expect } from 'vitest'
2
3
import { mount } from '@vue/test-utils'
4
import HelloWorld from '../HelloWorld.vue'
5
6
describe('HelloWorld', () => {
7
  it('renders properly', () => {
8
    const wrapper = mount(HelloWorld, { props: { msg: 'Hello Vitest' } })
9
    expect(wrapper.text()).toContain('Hello Vitest')
10
  })
11
})
12