mirror of
https://github.com/lana-k/sqliteviz.git
synced 2025-12-06 10:08:52 +08:00
#63 migrate to Vue 3
This commit is contained in:
@@ -21,7 +21,7 @@ describe('tab.js', () => {
|
||||
error: null,
|
||||
time: 0,
|
||||
isSaved: false,
|
||||
state: state
|
||||
state
|
||||
})
|
||||
expect(newTab.layout).to.include({
|
||||
sqlEditor: 'above',
|
||||
@@ -59,7 +59,7 @@ describe('tab.js', () => {
|
||||
error: null,
|
||||
time: 0,
|
||||
isSaved: true,
|
||||
state: state
|
||||
state
|
||||
})
|
||||
expect(newTab.layout).to.include({
|
||||
sqlEditor: 'above',
|
||||
|
||||
@@ -12,7 +12,7 @@ describe('actions', () => {
|
||||
|
||||
let id = await addTab({ state })
|
||||
expect(state.tabs[0]).to.include({
|
||||
id: id,
|
||||
id,
|
||||
name: null,
|
||||
tempName: 'Untitled',
|
||||
viewType: 'chart',
|
||||
@@ -23,7 +23,7 @@ describe('actions', () => {
|
||||
|
||||
id = await addTab({ state })
|
||||
expect(state.tabs[1]).to.include({
|
||||
id: id,
|
||||
id,
|
||||
name: null,
|
||||
tempName: 'Untitled 1',
|
||||
viewType: 'chart',
|
||||
|
||||
@@ -11,7 +11,7 @@ describe('MainMenu.vue', () => {
|
||||
afterEach(() => {
|
||||
sinon.restore()
|
||||
|
||||
// We need explicitly destroy the component, so that beforeDestroy hook was called
|
||||
// We need explicitly destroy the component, so that beforeUnmount hook was called
|
||||
// It's important because in this hook MainMenu component removes keydown event listener.
|
||||
wrapper.destroy()
|
||||
})
|
||||
@@ -497,7 +497,7 @@ describe('MainMenu.vue', () => {
|
||||
|
||||
// check that the tab was updated
|
||||
expect(mutations.updateTab.calledOnceWith(state, sinon.match({
|
||||
tab: tab,
|
||||
tab,
|
||||
newValues: {
|
||||
name: 'foo',
|
||||
id: 1,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { expect } from 'chai'
|
||||
import { _getDataSources, getPivotCanvas, getPivotHtml }
|
||||
from '@/views/Main/Workspace/Tabs/Tab/DataView/Pivot/pivotHelper'
|
||||
from '@/views/Main/Workspace/Tabs/Tab/DataView/Pivot/pivotHelper'
|
||||
|
||||
describe('pivotHelper.js', () => {
|
||||
it('_getDataSources returns data sources', () => {
|
||||
|
||||
Reference in New Issue
Block a user