Skip to content

Commit

Permalink
Added a test
Browse files Browse the repository at this point in the history
  • Loading branch information
fb55 authored and Quentin Sonnefraud committed Mar 5, 2021
1 parent 63d4cf0 commit 0a787b3
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/23-template_script_tags.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
exports.name = "Template script tags";
exports.options = {
handler: {}
, parser: {}
};
exports.html = "<script type=\"text/template\"> <h1>Heading1</h1></script>";
exports.expected = [ { raw: 'script type="text/template"',
data: 'script type="text/template"',
type: 'script',
name: 'script',
attribs: { type: 'text/template' },
children:
[ { raw: '<h1>Heading1</h1>',
data: '<h1>Heading1</h1>',
type: 'text' } ] } ];

0 comments on commit 0a787b3

Please sign in to comment.