1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2025-12-06 18:18:53 +08:00

fix column order in result set #74

This commit is contained in:
lana-k
2021-08-10 20:31:12 +02:00
parent 2ed5160f65
commit 9f32323a80
13 changed files with 155 additions and 92 deletions

View File

@@ -129,8 +129,11 @@ describe('Schema.vue', () => {
sinon.stub(csv, 'parse').resolves({
delimiter: '|',
data: {
col1: [1],
col2: ['foo']
columns: ['col1', 'col2'],
values: {
col1: [1],
col2: ['foo']
}
},
hasErrors: false,
messages: []
@@ -168,7 +171,7 @@ describe('Schema.vue', () => {
])
const res = await wrapper.vm.$store.state.db.execute('select * from test')
expect(res).to.eql({
expect(res.values).to.eql({
col1: [1],
col2: ['foo']
})