Skip to content

Commit

Permalink
Add timeout to URL fetching test
Browse files Browse the repository at this point in the history
  • Loading branch information
cookpete committed Oct 8, 2018
1 parent 5b0c44c commit d635a06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe('compileTemplate', () => {
const path = 'https://raw.githubusercontent.com/CookPete/auto-changelog/master/templates/compact.hbs'
const expected = await readFile(join(__dirname, 'data', 'template-compact.md'))
expect(await compileTemplate(path, { releases })).to.equal(expected)
})
}).timeout(10000)

it('throws an error when no template found', done => {
compileTemplate('not-found', { releases })
Expand Down

0 comments on commit d635a06

Please sign in to comment.