From 6bf7632bda8a9e60a8c5db132b389ee19a55eb3e Mon Sep 17 00:00:00 2001 From: Paul Robert Lloyd Date: Sun, 10 Dec 2023 22:39:30 +0000 Subject: [PATCH] Use CommonJS for test file, matching package --- .prettierignore | 1 - test/{index.mjs => index.js} | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) rename test/{index.mjs => index.js} (97%) diff --git a/.prettierignore b/.prettierignore index bd15fa5..f6c492e 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,3 +1,2 @@ # JavaScript (formatted with Standard) **/*.js -**/*.mjs diff --git a/test/index.mjs b/test/index.js similarity index 97% rename from test/index.mjs rename to test/index.js index 949cbce..7725d09 100644 --- a/test/index.mjs +++ b/test/index.js @@ -1,7 +1,7 @@ -import { strict as assert } from 'node:assert' -import test from 'node:test' -import { marked } from 'marked' -import govukMarkdown from '../index.js' +const { strict: assert } = require('node:assert') +const test = require('node:test') +const { marked } = require('marked') +const govukMarkdown = require('../index.js') marked.use(govukMarkdown())