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

fix tests

This commit is contained in:
lana-k
2022-06-26 21:06:24 +02:00
parent c8deff32c1
commit f0a4212e2b
3 changed files with 6 additions and 4 deletions

View File

@@ -461,6 +461,7 @@ describe('Pivot.vue', () => {
})
it('saveAsPng - table', async () => {
sinon.stub(pivotHelper, 'getPivotCanvas').returns(document.createElement('canvas'))
sinon.stub(HTMLCanvasElement.prototype, 'toDataURL').returns('canvas data url')
sinon.stub(fIo, 'downloadFromUrl')