Skip to content

Commit 1075824

Browse files
committed
Update dev-dependencies
1 parent f889b45 commit 1075824

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,18 @@
5656
"devDependencies": {
5757
"@types/node": "^20.0.0",
5858
"c8": "^8.0.0",
59-
"prettier": "^2.0.0",
59+
"prettier": "^3.0.0",
6060
"remark-cli": "^11.0.0",
6161
"remark-preset-wooorm": "^9.0.0",
6262
"type-coverage": "^2.0.0",
6363
"typescript": "^5.0.0",
64-
"unist-builder": "^3.0.0",
65-
"xo": "^0.54.0"
64+
"unist-builder": "^4.0.0",
65+
"xo": "^0.56.0"
6666
},
6767
"scripts": {
6868
"prepack": "npm run build && npm run format",
6969
"build": "tsc --build --clean && tsc --build && type-coverage",
70-
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
70+
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
7171
"test-api": "node --conditions development test/index.js",
7272
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
7373
"test": "npm run build && npm run format && npm run test-coverage"

test/matches.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,12 @@ test('select.matches()', async function (t) {
9898

9999
for (const pseudo of simplePseudos) {
100100
await t.test('should throw on `' + pseudo + '`', async function () {
101-
assert.throws(function () {
102-
matches(':' + pseudo, u('root', []))
103-
}, new RegExp('Error: Cannot use `:' + pseudo + '` without parent'))
101+
assert.throws(
102+
function () {
103+
matches(':' + pseudo, u('root', []))
104+
},
105+
new RegExp('Error: Cannot use `:' + pseudo + '` without parent')
106+
)
104107
})
105108
}
106109

0 commit comments

Comments
 (0)