Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
jenkins: move HTTP assertions from .tearDown() alongside response test
As it's way more intuitive to have those outgoing HTTP request
assertions alongside other assertions, than as part of the test tear
down process.
  • Loading branch information
phillipj committed Mar 24, 2019
commit 6f53aeab47a0b82aa2caa536f1632d77118dc7f7
2 changes: 1 addition & 1 deletion test/integration/push-jenkins-update.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,13 @@ tap.test('Posts a CI comment in the related PR when Jenkins build is named node-
.reply(201)

t.plan(1)
t.tearDown(() => commentScope.done())

supertest(app)
.post('/node/jenkins/start')
.send(fixture)
.expect(201)
.end((err, res) => {
commentScope.done()
t.equal(err, null)
})
})
Expand Down