Skip to content

Commit 5653006

Browse files
committed
ci: improves code coverage
1 parent 89f4b62 commit 5653006

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

test/Features.js

+6
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,10 @@ describe("Features", () => {
2222
view({ condition: true }).should.equal("<h3>Hello\n</h3>");
2323
view({ condition: false }).should.equal("<h3></h3>");
2424
});
25+
26+
it("removes unnecessary whitespace", async () => {
27+
const view = await keikan.compilePath(import.meta.dirname + "/views/long");
28+
29+
view().should.equal("<h3><strong>Hello\n</strong></h3>");
30+
});
2531
});

test/views/long.html

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<h3>
2+
<strong>
3+
Hello
4+
</strong>
5+
</h3>

0 commit comments

Comments
 (0)