mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05: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
1 changed files with 13 additions and 7 deletions
|
@ -500,7 +500,9 @@ describe('Members API', function () {
|
||||||
.put(localUtils.API.getApiQuery('members/bulk/?filter=label:bulk-unsubscribe-test'))
|
.put(localUtils.API.getApiQuery('members/bulk/?filter=label:bulk-unsubscribe-test'))
|
||||||
.set('Origin', config.get('url'))
|
.set('Origin', config.get('url'))
|
||||||
.send({
|
.send({
|
||||||
action: 'unsubscribe'
|
bulk: {
|
||||||
|
action: 'unsubscribe'
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.expect('Content-Type', /json/)
|
.expect('Content-Type', /json/)
|
||||||
.expect('Cache-Control', testUtils.cacheRules.private)
|
.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'))
|
.put(localUtils.API.getApiQuery('members/bulk/?filter=label:bulk-add-labels-test'))
|
||||||
.set('Origin', config.get('url'))
|
.set('Origin', config.get('url'))
|
||||||
.send({
|
.send({
|
||||||
action: 'addLabel',
|
bulk: {
|
||||||
meta: {
|
action: 'addLabel',
|
||||||
label: labelToAdd
|
meta: {
|
||||||
|
label: labelToAdd
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.expect('Content-Type', /json/)
|
.expect('Content-Type', /json/)
|
||||||
|
@ -581,9 +585,11 @@ describe('Members API', function () {
|
||||||
.put(localUtils.API.getApiQuery('members/bulk/?filter=label:bulk-add-labels-test'))
|
.put(localUtils.API.getApiQuery('members/bulk/?filter=label:bulk-add-labels-test'))
|
||||||
.set('Origin', config.get('url'))
|
.set('Origin', config.get('url'))
|
||||||
.send({
|
.send({
|
||||||
action: 'removeLabel',
|
bulk: {
|
||||||
meta: {
|
action: 'removeLabel',
|
||||||
label: labelToRemove
|
meta: {
|
||||||
|
label: labelToRemove
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.expect('Content-Type', /json/)
|
.expect('Content-Type', /json/)
|
||||||
|
|
Loading…
Add table
Reference in a new issue