Skip to content

Commit

Permalink
test: add test of danger-html
Browse files Browse the repository at this point in the history
  • Loading branch information
aralroca committed Sep 27, 2023
1 parent ec7e07f commit 553e46f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/brisa/danger-html/index.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { describe, it, expect } from "bun:test";
import dangerHTML from ".";

describe("danger-html", () => {
it('should be transformed to "danger-html" element', () => {
const html = "<div>test</div>";
const element = dangerHTML(html);

expect(element).toEqual({
type: "danger-html",
props: {
html,
},
});
});
});

0 comments on commit 553e46f

Please sign in to comment.