Skip to content

Commit

Permalink
test: restore variable in test output
Browse files Browse the repository at this point in the history
  • Loading branch information
iiroj committed Apr 25, 2020
1 parent 6aede38 commit 1b18550
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/gitWorkflow.spec.js
Expand Up @@ -130,8 +130,8 @@ describe('gitWorkflow', () => {
const totallyRandom = `totally_random_file-${Date.now().toString()}`
gitWorkflow.partiallyStagedFiles = [totallyRandom]
const ctx = getInitialState()
await expect(gitWorkflow.hideUnstagedChanges(ctx)).rejects.toThrowErrorMatchingInlineSnapshot(
`"error: pathspec 'totally_random_file-1587728648348' did not match any file(s) known to git"`
await expect(gitWorkflow.hideUnstagedChanges(ctx)).rejects.toThrowError(
`pathspec '${totallyRandom}' did not match any file(s) known to git`
)
expect(ctx).toMatchInlineSnapshot(`
Object {
Expand Down

0 comments on commit 1b18550

Please sign in to comment.