Skip to content

Commit

Permalink
Merge pull request #2268 from MitrahSoft/HtmlParse()
Browse files Browse the repository at this point in the history
Added a testcase for HtmlParse() functionality
  • Loading branch information
zspitzer authored Nov 17, 2023
2 parents f785f98 + 26b7be6 commit 0b016ab
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/functions/HTMLParse.cfc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
component extends="org.lucee.cfml.test.LuceeTestCase" {

function run( testResults , testBox ) {
describe( title = "Testcase for HtmlParse() function", body = function() {
it( title = "Checking HtmlParse() function", body = function( currentSpec ) {
test = htmlParse("HI <body><p>Lucee</p></body> !!!");
expect(IsXML(test)).toBeTrue();
expect(isstruct(test)).toBeTrue();
expect(IsXmlElem(test.html)).toBeTrue();
});
});
}
}

0 comments on commit 0b016ab

Please sign in to comment.