Skip to content

Commit

Permalink
Merge pull request #68 from Nautilus-Cyberneering/issue-66-fix-tests
Browse files Browse the repository at this point in the history
Fix tests to make them compatible with non-english GPG installations
  • Loading branch information
josecelano authored Feb 23, 2022
2 parents 8637bd1 + 2034b85 commit 968d428
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions __tests__/e2e/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ describe('GitHub Action', () => {
const gitLogOutput = gitLogForLatestCommit(gitRepo.getDirPath())

expect(gitLogOutput).toEqual(
expect.stringContaining(
`gpg: using RSA key ${signingKeyFingerprint}`
expect.stringMatching(
`gpg:.+RSA.+${signingKeyFingerprint}`
)
)
})
Expand Down
4 changes: 1 addition & 3 deletions __tests__/unit/queue.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,7 @@ describe('Queue', () => {
const output = gitLogForLatestCommit(gitRepo.getDirPath())

expect(
output.includes(
`gpg: using RSA key ${signingKeyFingerprint}`
)
RegExp(`gpg:.+RSA.+${signingKeyFingerprint}`).test(output)
).toBe(true)
})

Expand Down

0 comments on commit 968d428

Please sign in to comment.