File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import escapeHTML from "escape-html"
5
5
import DiffAOA from "../DiffAOA"
6
6
import path from "path"
7
7
8
- export default class HTML extends Formatter < string > {
8
+ export class HTML extends Formatter < string > {
9
9
constructor (
10
10
patcher = ( actual : string | null , expected : string | null ) => {
11
11
let patchedString = ""
@@ -22,7 +22,7 @@ export default class HTML extends Formatter<string> {
22
22
this . patch = patcher
23
23
}
24
24
format ( diffAOA : DiffAOA < string > ) : string {
25
- const script = fs . readFileSync ( "./src/formatter/ script.js" , "utf8" ) ;
25
+ const script = fs . readFileSync ( path . resolve ( __dirname , "./script.js" ) , "utf8" ) ;
26
26
const patchedAOA = diffAOA . map ( ( row ) => {
27
27
return row . map ( ( cell ) => {
28
28
if ( Array . isArray ( cell ) ) {
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { CSV } from '../src/formatter/csv';
5
5
import { WorkbookFormatter } from '../src/formatter/workbook' ;
6
6
import { writeFile } from 'xlsx' ;
7
7
import testData from './data/test.data.json' ;
8
- import HTML from '../src/formatter/html' ;
8
+ import { HTML } from '../src/formatter/html' ;
9
9
import Formatter from '../src/formatter' ;
10
10
11
11
test ( 'Write delta CSV' , ( ) => {
You can’t perform that action at this time.
0 commit comments