mirror of
https://github.com/lana-k/sqliteviz.git
synced 2025-12-06 18:18:53 +08:00
update tests
This commit is contained in:
@@ -15,8 +15,10 @@ describe('Workspace.vue', () => {
|
||||
const $route = { path: '/workspace', query: {} }
|
||||
mount(Workspace, {
|
||||
store,
|
||||
stubs: ['router-link'],
|
||||
mocks: { $route }
|
||||
global: {
|
||||
stubs: ['router-link'],
|
||||
mocks: { $route }
|
||||
}
|
||||
})
|
||||
|
||||
expect(state.tabs[0].query).to.include('Your database is empty.')
|
||||
@@ -36,8 +38,10 @@ describe('Workspace.vue', () => {
|
||||
const $route = { path: '/workspace', query: { hide_schema: '1' } }
|
||||
const vm = mount(Workspace, {
|
||||
store,
|
||||
stubs: ['router-link'],
|
||||
mocks: { $route }
|
||||
global: {
|
||||
stubs: ['router-link'],
|
||||
mocks: { $route }
|
||||
}
|
||||
})
|
||||
|
||||
expect(vm.find('#schema-container').element.offsetWidth).to.equal(0)
|
||||
|
||||
Reference in New Issue
Block a user