Skip to content

Commit

Permalink
tests: make each server test async/await
Browse files Browse the repository at this point in the history
  • Loading branch information
agonzalez0515 committed Oct 4, 2017
1 parent 803f2f2 commit bfc647a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/integration/server-test.js
Expand Up @@ -11,7 +11,7 @@ const robotMock = {

nock.disableNetConnect()

test('server create event with reftype = tag', t => {
test('server create event with reftype = tag', async (t) => {
simple.mock(robotMock, 'on')

server(robotMock)
Expand All @@ -24,7 +24,7 @@ test('server create event with reftype = tag', t => {
return {repository: 'name', labels: ['label']}
}

handleCreateEvent({
await handleCreateEvent({
payload: {
ref_type: 'tag',
repository: {
Expand All @@ -40,7 +40,7 @@ test('server create event with reftype = tag', t => {
t.end()
})

test('server create event with branch ref read-me-fix', t => {
test('server create event with branch ref read-me-fix', async (t) => {
simple.mock(robotMock, 'on')

server(robotMock)
Expand All @@ -53,7 +53,7 @@ test('server create event with branch ref read-me-fix', t => {
return {repository: 'name', labels: ['label']}
}

handleCreateEvent({
await handleCreateEvent({
payload: {
ref_type: 'branch',
ref: 'read-me-fix',
Expand Down

0 comments on commit bfc647a

Please sign in to comment.