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