Skip to content

Commit

Permalink
Merge pull request #31 from alanning/30-generalize-bad-git-command-test
Browse files Browse the repository at this point in the history
Fixes 30 - attempt at making "bad git command" test more platform independent
  • Loading branch information
jacob-meacham committed Sep 6, 2019
2 parents 2b24d5e + e6ab723 commit b4e8bf5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ coverage

.vscode
.idea

*.swp
2 changes: 1 addition & 1 deletion test/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ test.serial('Rejects on bad git command', async t => {
process.chdir(t.context.tmpDir)
const sls = buildSls()
sls.service.custom.describe = '${git:message}' // eslint-disable-line
await t.throws(sls.variables.populateService(), /Not a git repository/)
await t.throws(sls.variables.populateService(), /N|not a git repository*/)
})

test.serial('Inserts variables', async t => {
Expand Down

0 comments on commit b4e8bf5

Please sign in to comment.