Skip to content

Commit

Permalink
exposes Filters
Browse files Browse the repository at this point in the history
  • Loading branch information
dresende committed Feb 5, 2024
1 parent 96a94a8 commit 3d66835
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export { Renderer } from "./core/Renderer.js";
export * as Filters from "./core/Filters.js";
9 changes: 7 additions & 2 deletions test/Filters.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
import { Renderer } from "../index.js"
import should from "should"
import { Filters, Renderer } from "../index.js"
import should from "should"

const keikan = new Renderer({ debug: true });

describe("Filters", () => {
it("are exposed in Renderer", async () => {
Filters.nl.should.be.of.type("function");
Filters.quote.should.be.of.type("function");
});

it("nl", async () => {
const view = await keikan.compileData("<%-: \"text\\nwith\\nnewlines\" | nl %>");

Expand Down

0 comments on commit 3d66835

Please sign in to comment.