Skip to content

Commit

Permalink
Update dev-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Apr 7, 2024
1 parent 1a23c67 commit cdf12ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"strip-ansi": "^7.0.0",
"type-coverage": "^2.0.0",
"typescript": "^5.0.0",
"xo": "^0.56.0"
"xo": "^0.58.0"
},
"scripts": {
"prepack": "npm run build && npm run format",
Expand Down
10 changes: 1 addition & 9 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,12 @@ const causedCause = new Error('Boom!', {cause: exception})
causedCause.stack = cleanStack(causedCause.stack, 3)

test('reporter', async function () {
const mod = await import('./index.js')

assert.deepEqual(
Object.keys(mod).sort(),
Object.keys(await import('vfile-reporter')).sort(),
['default', 'reporter'],
'should expose the public api'
)

assert.equal(
mod.reporter,
mod.default,
'should expose `reporter` as a named and a default export'
)

assert.equal(reporter([]), '', 'should return empty when not given files')

assert.throws(
Expand Down

0 comments on commit cdf12ac

Please sign in to comment.