11// Fix for https://github.com/simonbengtsson/jsPDF-AutoTable/runs/3567913815
2- global . TextEncoder = require ( " util" ) . TextEncoder ;
3- global . TextDecoder = require ( " util" ) . TextDecoder ;
2+ global . TextEncoder = require ( ' util' ) . TextEncoder
3+ global . TextDecoder = require ( ' util' ) . TextDecoder
44
55import { parseCss } from '../src/cssParser'
66const assert = require ( 'assert' )
@@ -43,7 +43,7 @@ describe('css parser', () => {
4343 assert . equal (
4444 ( styles as any ) . cellPadding . top ,
4545 5 / pxScaleFactor ,
46- 'Cell padding'
46+ 'Cell padding' ,
4747 )
4848 assert . equal ( typeof styles . lineWidth , 'number' , 'Line width number' )
4949 assert . equal ( styles . lineWidth , 2 / pxScaleFactor , 'Line width' )
@@ -64,12 +64,16 @@ describe('css parser', () => {
6464 }
6565 const styles = parseCss ( [ ] , element , scaleFactor , element . style , dom . window )
6666 assert . equal ( typeof styles . lineWidth , 'object' , 'Line width object' )
67- assert . deepStrictEqual ( styles . lineWidth , {
68- top : 0 ,
69- right : 2 / pxScaleFactor / scaleFactor ,
70- bottom : 3 / pxScaleFactor / scaleFactor ,
71- left : 4 / pxScaleFactor / scaleFactor ,
72- } , 'Line widths' )
67+ assert . deepStrictEqual (
68+ styles . lineWidth ,
69+ {
70+ top : 0 ,
71+ right : 2 / pxScaleFactor / scaleFactor ,
72+ bottom : 3 / pxScaleFactor / scaleFactor ,
73+ left : 4 / pxScaleFactor / scaleFactor ,
74+ } ,
75+ 'Line widths' ,
76+ )
7377 } )
7478
7579 it ( 'minimal styles' , ( ) => {
0 commit comments