Skip to content

Commit

Permalink
Fix the Nock tests (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
emedvedev committed Jan 11, 2020
1 parent 6427fb9 commit 4ecb79c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe('slackin', () => {
nock('https://myorg.slack.com')
.get('/api/users.list')
.query({
token: 'mytoken', presence: '1', limit: 800, cursor: '',
token: 'mytoken', presence: 1, limit: 800, cursor: '',
})
.reply(200, {
ok: true,
Expand Down Expand Up @@ -98,10 +98,13 @@ describe('slackin', () => {

nock('https://myorg.slack.com')
.get('/api/users.list')
.query({ token: 'mytoken', presence: '1' })
.query({
token: 'mytoken', presence: 1, limit: 800, cursor: '',
})
.reply(200, {
ok: true,
members: [{}],
response_metadata: { next_cursor: '' },
});

nock('https://myorg.slack.com')
Expand All @@ -110,6 +113,7 @@ describe('slackin', () => {
.reply(200, {
ok: true,
members: [{}],
response_metadata: { next_cursor: '' },
});

nock('https://myorg.slack.com')
Expand Down

0 comments on commit 4ecb79c

Please sign in to comment.