This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
nezha-nezha-fronted/nezha-fronted/test/unit/specs/components/chart/chart.spec.js
2022-08-22 15:41:59 +08:00

16 lines
364 B
JavaScript

import { shallowMount } from '@vue/test-utils'
import chart from '@/components/chart/chart.vue'
describe('Counter.vue', () => {
it('increments count when button is clicked', () => {
const wrapper = shallowMount(chart, {
propsData: {
chartInfo: {
param: {}
}
}
})
expect(chart.methods.add(1, 2)).toBe(3)
})
})