Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit bbfa220

Browse files
Fix shfmt test to support multiple shfmt versions
The error message that we expect from one of our tests is different depending upon which version of shfmt is being run. Fix the test to accept both error messages.
1 parent f5fa4b5 commit bbfa220

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎server/src/shfmt/__tests__/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ describe('formatter', () => {
6969
shfmtConfig: { languageDialect: 'posix' },
7070
})
7171
}).rejects.toThrow(
72-
/Shfmt:exitedwithstatus1:.*\/testing\/fixtures\/shfmt.sh:25:14:the"function"builtinexistsinbash;triedparsingasposix/,
72+
/Shfmt:exitedwithstatus1:.*\/testing\/fixtures\/shfmt\.sh:25:14:(the"function"builtinexistsinbash;triedparsingasposix|acommandcanonlycontainwordsandredirects;encountered\()/,
7373
)
7474
})
7575

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /