elm-pages-v3-beta/generator/test/to-route-pattern.js

9 lines
250 B
JavaScript
Raw Normal View History

var assert = require("assert");
const { toPathPattern } = require("../src/route-codegen-helpers.js");
describe("toPathPattern", function () {
it("index is normalized", function () {
assert.strictEqual(toPathPattern(["Index"]), "/");
});
});