1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2025-12-06 18:18:53 +08:00

fix errors in tests

This commit is contained in:
lana-k
2021-09-01 22:27:51 +02:00
parent 61ffcc82d6
commit 42cce95ed0
4 changed files with 26 additions and 8 deletions

View File

@@ -2,8 +2,12 @@ import { expect } from 'chai'
import { mount } from '@vue/test-utils'
import Pivot from '@/views/Main/Workspace/Tabs/Tab/DataView/Pivot'
import $ from 'jquery'
import sinon from 'sinon'
describe('Pivot.vue', () => {
afterEach(() => {
sinon.restore()
})
it('renders pivot table', () => {
const wrapper = mount(Pivot, {
propsData: {
@@ -191,6 +195,7 @@ describe('Pivot.vue', () => {
rendererName: 'Custom chart',
rendererOptions: {
customChartComponent: {
$mount: sinon.stub(),
getOptionsForSave () {
return { here_are: 'custom chart settings' }
}