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:42:34 +02:00
parent 42cce95ed0
commit 858e32c9fd

View File

@@ -225,8 +225,11 @@ describe('CsvImport.vue', () => {
parse.onCall(0).resolves({ parse.onCall(0).resolves({
delimiter: '|', delimiter: '|',
data: { data: {
col1: [1], columns: ['col1', 'col2'],
col2: ['foo'] values: {
col1: [1],
col2: ['foo']
}
}, },
rowCount: 1 rowCount: 1
}) })
@@ -278,8 +281,11 @@ describe('CsvImport.vue', () => {
parse.onCall(0).resolves({ parse.onCall(0).resolves({
delimiter: '|', delimiter: '|',
data: { data: {
col1: [1], columns: ['col1', 'col2'],
col2: ['foo'] values: {
col1: [1],
col2: ['foo']
}
}, },
rowCount: 1, rowCount: 1,
hasErrors: false, hasErrors: false,
@@ -289,8 +295,11 @@ describe('CsvImport.vue', () => {
parse.onCall(1).resolves({ parse.onCall(1).resolves({
delimiter: '|', delimiter: '|',
data: { data: {
col1: [1, 2], columns: ['col1', 'col2'],
col2: ['foo', 'bar'] values: {
col1: [1, 2],
col2: ['foo', 'bar']
}
}, },
rowCount: 2, rowCount: 2,
hasErrors: false, hasErrors: false,
@@ -333,8 +342,11 @@ describe('CsvImport.vue', () => {
parse.onCall(0).resolves({ parse.onCall(0).resolves({
delimiter: '|', delimiter: '|',
data: { data: {
col1: [1], columns: ['col1', 'col2'],
col2: ['foo'] values: {
col1: [1],
col2: ['foo']
}
}, },
rowCount: 1, rowCount: 1,
hasErrors: false, hasErrors: false,
@@ -344,8 +356,11 @@ describe('CsvImport.vue', () => {
parse.onCall(1).resolves({ parse.onCall(1).resolves({
delimiter: '|', delimiter: '|',
data: { data: {
col1: [1, 2], columns: ['col1', 'col2'],
col2: ['foo', 'bar'] values: {
col1: [1, 2],
col2: ['foo', 'bar']
}
}, },
rowCount: 2, rowCount: 2,
hasErrors: false, hasErrors: false,
@@ -395,8 +410,11 @@ describe('CsvImport.vue', () => {
parse.onCall(0).resolves({ parse.onCall(0).resolves({
delimiter: '|', delimiter: '|',
data: { data: {
col1: [1], columns: ['col1', 'col2'],
col2: ['foo'] values: {
col1: [1],
col2: ['foo']
}
}, },
rowCount: 1, rowCount: 1,
hasErrors: false, hasErrors: false,
@@ -406,8 +424,11 @@ describe('CsvImport.vue', () => {
parse.onCall(1).resolves({ parse.onCall(1).resolves({
delimiter: '|', delimiter: '|',
data: { data: {
col1: [1, 2], columns: ['col1', 'col2'],
col2: ['foo', 'bar'] values: {
col1: [1, 2],
col2: ['foo', 'bar']
}
}, },
rowCount: 2, rowCount: 2,
hasErrors: true, hasErrors: true,
@@ -451,8 +472,11 @@ describe('CsvImport.vue', () => {
parse.onCall(0).resolves({ parse.onCall(0).resolves({
delimiter: '|', delimiter: '|',
data: { data: {
col1: [1], columns: ['col1', 'col2'],
col2: ['foo'] values: {
col1: [1],
col2: ['foo']
}
}, },
rowCount: 1, rowCount: 1,
hasErrors: false, hasErrors: false,
@@ -462,8 +486,11 @@ describe('CsvImport.vue', () => {
parse.onCall(1).resolves({ parse.onCall(1).resolves({
delimiter: '|', delimiter: '|',
data: { data: {
col1: [1, 2], columns: ['col1', 'col2'],
col2: ['foo', 'bar'] values: {
col1: [1, 2],
col2: ['foo', 'bar']
}
}, },
rowCount: 2, rowCount: 2,
hasErrors: false, hasErrors: false,
@@ -518,8 +545,11 @@ describe('CsvImport.vue', () => {
parse.onCall(0).resolves({ parse.onCall(0).resolves({
delimiter: '|', delimiter: '|',
data: { data: {
col1: [1], columns: ['col1', 'col2'],
col2: ['foo'] values: {
col1: [1],
col2: ['foo']
}
}, },
rowCount: 1, rowCount: 1,
hasErrors: false, hasErrors: false,
@@ -529,8 +559,11 @@ describe('CsvImport.vue', () => {
parse.onCall(1).resolves({ parse.onCall(1).resolves({
delimiter: '|', delimiter: '|',
data: { data: {
col1: [1, 2], columns: ['col1', 'col2'],
col2: ['foo', 'bar'] values: {
col1: [1, 2],
col2: ['foo', 'bar']
}
}, },
rowCount: 2, rowCount: 2,
hasErrors: false, hasErrors: false,
@@ -567,8 +600,11 @@ describe('CsvImport.vue', () => {
parse.onCall(0).resolves({ parse.onCall(0).resolves({
delimiter: '|', delimiter: '|',
data: { data: {
col1: [1], columns: ['col1', 'col2'],
col2: ['foo'] values: {
col1: [1],
col2: ['foo']
}
}, },
rowCount: 1, rowCount: 1,
hasErrors: false, hasErrors: false,
@@ -578,8 +614,11 @@ describe('CsvImport.vue', () => {
parse.onCall(1).resolves({ parse.onCall(1).resolves({
delimiter: '|', delimiter: '|',
data: { data: {
col1: [1, 2], columns: ['col1', 'col2'],
col2: ['foo', 'bar'] values: {
col1: [1, 2],
col2: ['foo', 'bar']
}
}, },
rowCount: 2, rowCount: 2,
hasErrors: false, hasErrors: false,
@@ -618,8 +657,11 @@ describe('CsvImport.vue', () => {
sinon.stub(csv, 'parse').resolves({ sinon.stub(csv, 'parse').resolves({
delimiter: '|', delimiter: '|',
data: { data: {
col1: [1], columns: ['col1', 'col2'],
col2: ['foo'] values: {
col1: [1],
col2: ['foo']
}
}, },
rowCount: 1, rowCount: 1,
hasErrors: false, hasErrors: false,
@@ -646,8 +688,11 @@ describe('CsvImport.vue', () => {
sinon.stub(csv, 'parse').resolves({ sinon.stub(csv, 'parse').resolves({
delimiter: '|', delimiter: '|',
data: { data: {
col1: [1], columns: ['col1', 'col2'],
col2: ['foo'] values: {
col1: [1],
col2: ['foo']
}
}, },
rowCount: 1, rowCount: 1,
hasErrors: false, hasErrors: false,