From 58653690bd508e893f221892c0df4bc3f2e92cad Mon Sep 17 00:00:00 2001 From: Fabien O'Carroll Date: Fri, 1 Oct 2021 14:21:14 +0200 Subject: [PATCH] Fixed member bulk actions acceptance tests refs https://github.com/TryGhost/Team/issues/1077 refs https://github.com/allouis/Ghost/commit/cdbccdeba These tests were forgotten in the update to the API. --- test/api-acceptance/admin/members.test.js | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/test/api-acceptance/admin/members.test.js b/test/api-acceptance/admin/members.test.js index 94d13b1e73..c19dd56c7c 100644 --- a/test/api-acceptance/admin/members.test.js +++ b/test/api-acceptance/admin/members.test.js @@ -500,7 +500,9 @@ describe('Members API', function () { .put(localUtils.API.getApiQuery('members/bulk/?filter=label:bulk-unsubscribe-test')) .set('Origin', config.get('url')) .send({ - action: 'unsubscribe' + bulk: { + action: 'unsubscribe' + } }) .expect('Content-Type', /json/) .expect('Cache-Control', testUtils.cacheRules.private) @@ -551,9 +553,11 @@ describe('Members API', function () { .put(localUtils.API.getApiQuery('members/bulk/?filter=label:bulk-add-labels-test')) .set('Origin', config.get('url')) .send({ - action: 'addLabel', - meta: { - label: labelToAdd + bulk: { + action: 'addLabel', + meta: { + label: labelToAdd + } } }) .expect('Content-Type', /json/) @@ -581,9 +585,11 @@ describe('Members API', function () { .put(localUtils.API.getApiQuery('members/bulk/?filter=label:bulk-add-labels-test')) .set('Origin', config.get('url')) .send({ - action: 'removeLabel', - meta: { - label: labelToRemove + bulk: { + action: 'removeLabel', + meta: { + label: labelToRemove + } } }) .expect('Content-Type', /json/)