Skip to content

Commit

Permalink
done fixing create-users tests
Browse files Browse the repository at this point in the history
  • Loading branch information
m5r committed Oct 30, 2023
1 parent e8cbe02 commit 51307b0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/fn/create-users.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,11 @@ describe('create-users', function () {
mockTestDir(`data/create-users/multiple-existing-place`);
const pwd = 'Secret_1';
api.giveResponses(
{ status: 400, body: { code: 400, error: 'not an offline role' } },
{ status: 400, body: { code: 400, error: 'not an offline role' } },
{ status: 400, body: { code: 400, error: 'not an offline role' } },
{ status: 400, body: { code: 400, error: 'not an offline role' } },
{ status: 400, body: { code: 400, error: 'not an offline role' } },
{ status: 400, body: { code: 400, error: 'not an offline role' } },
{ body: { total_docs: 12000, warn: true, limit: 10000 } },
{ body: { total_docs: 10200, warn: true, limit: 10000 } },
Expand All @@ -335,6 +340,11 @@ describe('create-users', function () {
.catch(() => {
assert.equal(readLine.keyInYN.callCount, 1);
assert.deepEqual(api.requestLog(), [
{ method: 'GET', url: '/api/v1/users-info?' + qs(todd), body: {} },
{ method: 'GET', url: '/api/v1/users-info?' + qs(todd), body: {} },
{ method: 'GET', url: '/api/v1/users-info?' + qs(todd), body: {} },
{ method: 'GET', url: '/api/v1/users-info?' + qs(todd), body: {} },
{ method: 'GET', url: '/api/v1/users-info?' + qs(todd), body: {} },
{ method: 'GET', url: '/api/v1/users-info?' + qs(todd), body: {} },
{ method: 'GET', url: '/api/v1/users-info?' + qs(jack), body: {} },
{ method: 'GET', url: '/api/v1/users-info?' + qs(jill), body: {} },
Expand Down

0 comments on commit 51307b0

Please sign in to comment.