Skip to content

Commit

Permalink
Add tests for the hr tag
Browse files Browse the repository at this point in the history
  • Loading branch information
emilos committed May 16, 2024
1 parent b425e29 commit f2bdded
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/tags/hr/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const { hr } = require("../../..")

module.exports = () => {
return hr()
}
9 changes: 9 additions & 0 deletions test/tags/hr/index.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const test = require("node:test")
const assert = require("node:assert")
const { compile } = require("../../..")

test("hr", async () => {
const { template } = await compile(__dirname)
const html = template()
assert(html.includes("<hr>"))
})

0 comments on commit f2bdded

Please sign in to comment.