1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2025-12-07 02:28:54 +08:00

fix lint errors

This commit is contained in:
lana-k
2021-02-28 21:29:52 +01:00
parent 664c43bce1
commit 7bd8388fd6
4 changed files with 32 additions and 30 deletions

View File

@@ -17,7 +17,7 @@ describe('DbUploader.vue', () => {
saveSchema: sinon.stub()
}
const store = new Vuex.Store({ state, mutations })
// mock getting a file from user
const file = {}
sinon.stub(fu, 'getFileFromUser').resolves(file)
@@ -72,7 +72,7 @@ describe('DbUploader.vue', () => {
value: [file],
writable: false
})
await wrapper.find('.drop-area').trigger('drop', dropData)
expect($db.loadDb.calledOnceWith(file)).to.equal(true)
await $db.loadDb.returnValues[0]