mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-23 20:03:31 +03:00
Use ESM for mocha tests.
This commit is contained in:
parent
8978ed1ac9
commit
7ef56571bf
@ -1,5 +1,6 @@
|
|||||||
var assert = require("assert");
|
import * as assert from "assert";
|
||||||
const { sortTemplates } = require("../src/generate-template-module-connector");
|
|
||||||
|
import { sortTemplates } from "../src/generate-template-module-connector.js";
|
||||||
describe("sort", function () {
|
describe("sort", function () {
|
||||||
it("purely static comes before dynamic routes", function () {
|
it("purely static comes before dynamic routes", function () {
|
||||||
assert.deepStrictEqual(
|
assert.deepStrictEqual(
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
var assert = require("assert");
|
import * as assert from "assert";
|
||||||
const {
|
|
||||||
toPathPattern,
|
import { toPathPattern, toPathPatterns } from "../src/route-codegen-helpers.js";
|
||||||
toPathPatterns,
|
|
||||||
} = require("../src/route-codegen-helpers.js");
|
|
||||||
|
|
||||||
describe("toPathPattern", function () {
|
describe("toPathPattern", function () {
|
||||||
it("index is normalized", function () {
|
it("index is normalized", function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user