File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ import * as path from 'path';
66import { parseMarkup , cssUri } from '../markupParser' ;
77import * as fs from 'fs' ;
88
9+ const HTML_FORMATTER = require ( 'html-formatter' ) ;
10+
911const TEST_FILES_ROOT = path . join ( __dirname , "../../src/test/testfiles" ) ;
1012const FIXTURES_ROOT = path . join ( __dirname , "../../src/test/resources/fixtures" ) ;
1113
@@ -54,7 +56,8 @@ suite("markupParser Tests", function () {
5456 const testFileUri = vscode . Uri . file ( fullFilePath ) ;
5557 const confluenceContent = fs . readFileSync ( testFileUri . fsPath , 'utf8' ) ;
5658
57- assert . equal ( parseMarkup ( testFileUri , confluenceContent ) , fixtureContent ) ;
59+ const parsedMarkup = HTML_FORMATTER . render ( parseMarkup ( testFileUri , confluenceContent ) )
60+ assert . equal ( parsedMarkup , fixtureContent ) ;
5861 } ) ;
5962 } ) ;
6063} ) ;
You can’t perform that action at this time.
0 commit comments