1
0
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:
lana-k
2024-10-13 16:12:21 +02:00
parent b30b2181e4
commit 637d8d26dd
60 changed files with 16279 additions and 17440 deletions

View File

@@ -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',

View File

@@ -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',

View File

@@ -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,

View File

@@ -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', () => {