Skip to content

Commit

Permalink
feat: probot 9 (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebolam authored Mar 22, 2019
1 parent b87e0b4 commit ff68e20
Show file tree
Hide file tree
Showing 3 changed files with 223 additions and 123 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"aws-sdk": "^2.395.0",
"compromise": "^11.13.0",
"node-fetch": "^2.3.0",
"probot": "^8.0.0-beta.1",
"probot": "^9.0.2",
"uuid": "^3.3.2"
},
"devDependencies": {
Expand Down
23 changes: 19 additions & 4 deletions test/tasks/processIssueComment/probot-app-e2e.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,26 @@ describe('All Contributors app - End to end', () => {
}

beforeEach(() => {
probot = new Probot({})
const app = probot.load(processIssueCommentApp)
probot = new Probot({
id: 123,
cert: `-----BEGIN RSA PRIVATE KEY-----
MIICXQIBAAKBgQC2RTg7dNjQMwPzFwF0gXFRCcRHha4H24PeK7ey6Ij39ay1hy2o
H9NEZOxrmAb0bEBDuECImTsJdpgI6F3OwkJGsOkIH09xTk5tC4fkfY8N7LklK+uM
ndN4+VUXTPSj/U8lQtCd9JnnUL/wXDc46wRJ0AAKsQtUw5n4e44f+aYggwIDAQAB
AoGAW2/cJs+WWNPO3msjGrw5CYtZwPuJ830m6RSLYiAPXj0LuEEpIVdd18i9Zbht
fL61eoN7NEuSd0vcN1PCg4+mSRAb/LoauSO3HXote+6Lhg+y5mVYTNkE0ZAW1zUb
HOelQp9M6Ia/iQFIMykhrNLqMG9xQIdLH8BDGuqTE+Eh8jkCQQDyR6qfowD64H09
oYJI+QbsE7yDOnG68tG7g9h68Mp089YuQ43lktz0q3fhC7BhBuSnfkBHwMztABuA
Ow1+dP9FAkEAwJeYJYxJN9ron24IePDoZkL0T0faIWIX2htZH7kJODs14OP+YMVO
1CPShdTIgFeVp/HlAY2Qqk/do2fzyueZJwJBAN5GvdUjmRyRpJVMfdkxDxa7rLHA
huL7L0wX1B5Gl5fgtVlQhPhgWvLl9V+0d6csyc6Y16R80AWHmbN1ehXQhPkCQGfF
RsV0gT8HRLAiqY4AwDfZe6n8HRw/rnpmoe7l1IHn5W/3aOjbZ04Gvzg9HouIpaqI
O8xKathZkCKrsEBz6aECQQCLgqOCJz4MGIVHP4vQHgYp8YNZ+RMSfJfZA9AyAsgP
Pc6zWtW2XuNIGHw9pDj7v1yDolm7feBXLg8/u9APwHDy
-----END RSA PRIVATE KEY-----`,
})

// just return a test token
app.app = () => 'test'
probot.load(processIssueCommentApp)
})

test('1:Happy path, add correct new contributor', async () => {
Expand Down
Loading

0 comments on commit ff68e20

Please sign in to comment.