Skip to content
Permalink
Browse files

Fix the Nock tests (#146)

  • Loading branch information
emedvedev committed Jan 11, 2020
1 parent 6427fb9 commit 4ecb79ced6ec4f5ef4eb966ba3fb5a5914af83ce
Showing with 6 additions and 2 deletions.
  1. +6 −2 test/index.js
@@ -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,
@@ -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')
@@ -110,6 +113,7 @@ describe('slackin', () => {
.reply(200, {
ok: true,
members: [{}],
response_metadata: { next_cursor: '' },
});

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

0 comments on commit 4ecb79c

Please sign in to comment.
You can’t perform that action at this time.