Skip to content

Commit c8ae7d8

Browse files
Fix tests
1 parent cb74b82 commit c8ae7d8

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

test/testCssParser.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ describe('css parser', () => {
3636
}
3737
const styles = parseCss([], element, 1, element.style, dom.window)
3838
assert(styles, 'Should have result')
39-
assert(!styles.lineColor, 'Transparent color')
4039
assert(styles.fillColor, 'Parse color')
4140
assert(styles.halign === 'center', 'Horizontal align')
4241
assert(styles.valign === 'top', 'String value')

test/testRunning.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe('runner', () => {
1919

2020
it('nodejs', () => {
2121
;(global as any).window = {}
22-
const jsPDFNode = require('jspdf/dist/jspdf.node').jsPDF
22+
const jsPDFNode = require('jspdf').jsPDF
2323
delete (global as any).window
2424

2525
const doc = new jsPDFNode()

0 commit comments

Comments
 (0)