1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2025-12-06 10:08:52 +08:00
This commit is contained in:
lana-k
2024-01-03 18:26:07 +01:00
parent 96af391f20
commit 78e9ca2120
2 changed files with 6 additions and 1 deletions

View File

@@ -97,7 +97,8 @@ export default {
this.formattedJson = JSON.stringify( this.formattedJson = JSON.stringify(
JSON.parse(jsonStr), null, 4 JSON.parse(jsonStr), null, 4
) )
} catch { } catch (e) {
console.error(e)
this.formattedJson = '' this.formattedJson = ''
this.messages = [{ this.messages = [{
type: 'error', type: 'error',

View File

@@ -15,6 +15,7 @@ describe('RunResult.vue', () => {
sinon.spy(window, 'alert') sinon.spy(window, 'alert')
const wrapper = mount(RunResult, { const wrapper = mount(RunResult, {
propsData: { propsData: {
tab: { id: 1 },
result: { result: {
columns: ['id', 'name'], columns: ['id', 'name'],
values: { values: {
@@ -44,6 +45,7 @@ describe('RunResult.vue', () => {
const clock = sinon.useFakeTimers() const clock = sinon.useFakeTimers()
const wrapper = mount(RunResult, { const wrapper = mount(RunResult, {
propsData: { propsData: {
tab: { id: 1 },
result: { result: {
columns: ['id', 'name'], columns: ['id', 'name'],
values: { values: {
@@ -89,6 +91,7 @@ describe('RunResult.vue', () => {
const clock = sinon.useFakeTimers() const clock = sinon.useFakeTimers()
const wrapper = mount(RunResult, { const wrapper = mount(RunResult, {
propsData: { propsData: {
tab: { id: 1 },
result: { result: {
columns: ['id', 'name'], columns: ['id', 'name'],
values: { values: {
@@ -122,6 +125,7 @@ describe('RunResult.vue', () => {
const clock = sinon.useFakeTimers() const clock = sinon.useFakeTimers()
const wrapper = mount(RunResult, { const wrapper = mount(RunResult, {
propsData: { propsData: {
tab: { id: 1 },
result: { result: {
columns: ['id', 'name'], columns: ['id', 'name'],
values: { values: {