Skip to content

Commit

Permalink
Added a testcase for HtmlParse() functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
cfmitrah committed Nov 6, 2023
1 parent 218fbae commit 26b7be6
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 26b7be6

Please sign in to comment.