File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 11/* eslint-disable @typescript-eslint/no-unsafe-call */
22// eslint-disable-next-line @typescript-eslint/no-unsafe-call
3- import { expect } from 'chai ' ;
3+ import { expect } from '@salesforce/command/lib/test ' ;
44import { HTMLParser } from '../../../../src/utils/lwcparser/htmlParser/HTMLParser' ;
5- import { FileDiffUtil } from '../../../../src/utils/lwcparser/fileutils/FileDiffUtil' ;
65
76describe ( 'HTMLParser test class' , ( ) => {
87 const mockFilePath = 'test/utils/lwc/parser/input/test.html' ;
98 it ( 'should read file content correctly' , ( ) => {
109 const htmlParser = new HTMLParser ( mockFilePath ) ;
11- const html : Map < string , string > = htmlParser . replaceTags ( 'omnistudio' ) ;
12- // eslint-disable-next-line no-console
13- console . log ( new FileDiffUtil ( ) . getFileDiff ( 'file.txt' , html . get ( 'original' ) , html . get ( 'modified' ) ) ) ;
14- htmlParser . saveToFile ( 'test/utils/lwc/parser/output/test.html' , html . get ( 'modified' ) ) ;
15- expect ( htmlParser . getModifiedHTML ( ) ) . contains ( 'c-omniscript-step-chart' ) ;
10+ htmlParser . replaceTags ( 'omnistudio' ) ;
11+ expect ( htmlParser . getModifiedHTML ( ) ) . contains ( 'c-input' ) ;
1612 } ) ;
1713} ) ;
You can’t perform that action at this time.
0 commit comments