mirror of
https://github.com/lana-k/sqliteviz.git
synced 2025-12-06 18:18:53 +08:00
resolve exportToFile in a test
This commit is contained in:
@@ -212,8 +212,9 @@ describe('database.js', () => {
|
|||||||
db.deleteProgressCounter(firstId)
|
db.deleteProgressCounter(firstId)
|
||||||
expect(db.importProgresses[firstId]).to.equal(undefined)
|
expect(db.importProgresses[firstId]).to.equal(undefined)
|
||||||
})
|
})
|
||||||
|
|
||||||
it('exports db', async () => {
|
it('exports db', async () => {
|
||||||
sinon.stub(fu, 'exportToFile')
|
sinon.stub(fu, 'exportToFile').resolves()
|
||||||
|
|
||||||
// create db with table foo
|
// create db with table foo
|
||||||
const stmt = `
|
const stmt = `
|
||||||
|
|||||||
Reference in New Issue
Block a user