mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
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.
This commit is contained in:
parent
da76a6ebf9
commit
58653690bd
@ -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/)
|
||||
|
Loading…
Reference in New Issue
Block a user