Files
shields/services/github/github-hacktoberfest.spec.js
Caleb Cartwright 5a4f705e8f fix [GitHubHacktoberfest] service test (#4299)
* tests: fix hacktoberfest service test

* tests: update message for post-hacktoberfest, add couple unit tests

* chore: lgtm fix

* tests: fix unit test
2019-11-06 04:47:56 -06:00

23 lines
521 B
JavaScript

'use strict'
const { test, given } = require('sazerac')
const GitHubHacktoberfest = require('./github-hacktoberfest.service')
describe('GitHubHacktoberfest', function() {
test(GitHubHacktoberfest.render, () => {
given({
daysLeft: -1,
contributionCount: 12,
}).expect({
message: 'is over! (12 PRs opened)',
})
given({
daysLeft: 10,
contributionCount: 27,
suggestedIssueCount: 54,
}).expect({
message: '54 open issues, 27 PRs, 10 days left',
})
})
})