Skip to content

Commit 4435e02

Browse files
committed
fix test
1 parent 0580e0e commit 4435e02

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/node.js.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ jobs:
2626
node-version: ${{ matrix.node-version }}
2727
cache: 'npm'
2828
- run: npm install
29-
- run: npm i -g @75lb/nature@^0.1.1
29+
- run: npm i -g @75lb/nature
3030
- run: npm test

test/explain.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ test.set('.explain({ files }): generate a warning', async function () {
4242
})
4343

4444
test.set('.explain({ files }): files is empty', async function () {
45-
return jsdoc.explain({ files: [] })
45+
a.rejects(
46+
() => jsdoc.explain({ files: [] }),
47+
/Must set either .files or .source/
48+
)
4649
})
4750

4851
export { test, only, skip }

0 commit comments

Comments
 (0)