Skip to content

Commit

Permalink
Use CommonJS for test file, matching package
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Dec 10, 2023
1 parent 592f484 commit 6bf7632
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# JavaScript (formatted with Standard)
**/*.js
**/*.mjs
8 changes: 4 additions & 4 deletions test/index.mjs → test/index.js
Original file line number Diff line number Diff line change
@@ -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())

Expand Down

0 comments on commit 6bf7632

Please sign in to comment.