fix: 修改测试用例

This commit is contained in:
chenjinsong
2023-08-28 18:02:25 +08:00
parent 6970b7a41d
commit ea3cc7bc67
27 changed files with 296 additions and 128 deletions

View File

@@ -3,7 +3,8 @@ import { mount } from '@vue/test-utils'
import axios from 'axios'
import ElementPlus from 'element-plus'
import { mockData } from './mockData/NetworkOverviewApps'
import common from '@/mixins/common'
import chartMixin from '@/views/charts2/chart-mixin'
const chart = mockData.common.chart
const linkInfo = 5
@@ -49,7 +50,13 @@ function axiosPostAndMounted (Metric, flag, data) {
},
global: {
plugins: [ElementPlus]
}
},
data () {
return {
isUnitTesting: true
}
},
mixins: [common, chartMixin]
})
}