Skip to content

Commit

Permalink
Fix broken tests: filters.coffeescript and filters.includes
Browse files Browse the repository at this point in the history
The expected output .html was flat wrong, simply running pug itself over
the input files was an easy fix.
  • Loading branch information
brewingcode committed Feb 7, 2020
1 parent c6c72ae commit 1ccbcfa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
6 changes: 2 additions & 4 deletions packages/pug/test/cases/filters.coffeescript.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<script type="text/javascript">
(function() {
<script type="text/javascript">(function() {
var regexp;

regexp = /\n/;

}).call(this);
(function(){}).call(this);
</script>
(function(){var n;n={square:function(n){return n*n}}}).call(this);</script>
12 changes: 3 additions & 9 deletions packages/pug/test/cases/filters.include.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<html>
<body><p>Just <em>some</em> markdown <strong>tests</strong>.</p>
<html><body><p>Just <em>some</em> markdown <strong>tests</strong>.</p>
<p>With new line.</p>

<script>(function(){}).call(this);</script>
<script>(function() {
<script>(function(){var n;n={square:function(n){return n*n}}}).call(this);</script><script>(function() {
var math;

math = {
Expand All @@ -13,7 +10,4 @@
};

}).call(this);

</script>
</body>
</html>
</script></body></html>

0 comments on commit 1ccbcfa

Please sign in to comment.