Skip to content

Commit a9697fe

Browse files
committed
Add console error assertion
1 parent 2945070 commit a9697fe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

server/src/__tests__/linter.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ describe('linter', () => {
2525
})
2626
expect(await linter.lint(textToDoc(''), [])).toEqual([])
2727
expect(linter.canLint).toBe(false)
28+
expect(console.error).toBeCalledWith(
29+
expect.stringContaining('shellcheck not available at path'),
30+
)
2831
})
2932

3033
it('should lint when shellcheck present', async () => {

0 commit comments

Comments
 (0)