Skip to content

Commit

Permalink
fix: comment
Browse files Browse the repository at this point in the history
  • Loading branch information
EoinFalconer committed Dec 18, 2024
1 parent 4648589 commit 6a58620
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@sanity/cli/test/basics.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describeCliTest('CLI: basic commands', () => {

testConcurrent('sanity --version', async () => {
const result = await runSanityCmdCommand(version, ['--version'])
// Just check that the result is only one line
// If the help text isn't returned, the result should only be one line
expect(result.stdout.split('\n')).toHaveLength(1)

Check failure on line 54 in packages/@sanity/cli/test/basics.test.ts

View workflow job for this annotation

GitHub Actions / CLI Tests (ubuntu-latest / node 20)

test/basics.test.ts > CLI: basic commands > v3 > sanity --version

AssertionError: expected [ '@sanity/cli version 3.68.0', '' ] to have a length of 1 but got 2 - Expected + Received - 1 + 2 ❯ test/basics.test.ts:54:41

Check failure on line 54 in packages/@sanity/cli/test/basics.test.ts

View workflow job for this annotation

GitHub Actions / CLI Tests (ubuntu-latest / node 18)

test/basics.test.ts > CLI: basic commands > v3 > sanity --version

AssertionError: expected [ '@sanity/cli version 3.68.0', '' ] to have a length of 1 but got 2 - Expected + Received - 1 + 2 ❯ test/basics.test.ts:54:41
expect(result.code).toBe(0)
})
Expand Down

0 comments on commit 6a58620

Please sign in to comment.