From 51307b0d8d871e7a5b63f9d5523435666a8dfbab Mon Sep 17 00:00:00 2001 From: m5r Date: Mon, 30 Oct 2023 22:57:50 +0100 Subject: [PATCH] done fixing create-users tests --- test/fn/create-users.spec.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/fn/create-users.spec.js b/test/fn/create-users.spec.js index c72873dea..470281932 100644 --- a/test/fn/create-users.spec.js +++ b/test/fn/create-users.spec.js @@ -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 } }, @@ -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: {} },