Skip to content

Commit c7fba38

Browse files
committed
test: fix a test
1 parent 6a58620 commit c7fba38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/@sanity/cli/test/basics.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ describeCliTest('CLI: basic commands', () => {
5050

5151
testConcurrent('sanity --version', async () => {
5252
const result = await runSanityCmdCommand(version, ['--version'])
53-
// If the help text isn't returned, the result should only be one line
54-
expect(result.stdout.split('\n')).toHaveLength(1)
53+
// If the help text isn't returned, the result should only be one line with text
54+
expect(result.stdout.split('\n').filter((l) => l.length > 0)).toHaveLength(1)
5555
expect(result.code).toBe(0)
5656
})
5757
})

0 commit comments

Comments
 (0)