Skip to content

Commit

Permalink
Update dev-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Nov 6, 2023
1 parent f889b45 commit 1075824
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,18 @@
"devDependencies": {
"@types/node": "^20.0.0",
"c8": "^8.0.0",
"prettier": "^2.0.0",
"prettier": "^3.0.0",
"remark-cli": "^11.0.0",
"remark-preset-wooorm": "^9.0.0",
"type-coverage": "^2.0.0",
"typescript": "^5.0.0",
"unist-builder": "^3.0.0",
"xo": "^0.54.0"
"unist-builder": "^4.0.0",
"xo": "^0.56.0"
},
"scripts": {
"prepack": "npm run build && npm run format",
"build": "tsc --build --clean && tsc --build && type-coverage",
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
"test-api": "node --conditions development test/index.js",
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
"test": "npm run build && npm run format && npm run test-coverage"
Expand Down
9 changes: 6 additions & 3 deletions test/matches.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,12 @@ test('select.matches()', async function (t) {

for (const pseudo of simplePseudos) {
await t.test('should throw on `' + pseudo + '`', async function () {
assert.throws(function () {
matches(':' + pseudo, u('root', []))
}, new RegExp('Error: Cannot use `:' + pseudo + '` without parent'))
assert.throws(
function () {
matches(':' + pseudo, u('root', []))
},
new RegExp('Error: Cannot use `:' + pseudo + '` without parent')
)
})
}

Expand Down

0 comments on commit 1075824

Please sign in to comment.