mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Removed subscriber-related webhook fixtures
refs https://github.com/TryGhost/Toolbox/issues/308
refs 0f5c22a38d
- There is no concept of "subscriber" in the codebase any longer. Keeping removed webhooks around does not make sense
This commit is contained in:
parent
2a0c1f9fb6
commit
939496487d
4 changed files with 7 additions and 7 deletions
|
@ -49,7 +49,7 @@ Object {
|
|||
Object {
|
||||
"api_version": StringMatching /v\\\\d\\+\\\\\\.\\\\d\\+/,
|
||||
"created_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}/,
|
||||
"event": "subscriber.added",
|
||||
"event": "member.added",
|
||||
"id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
||||
"integration_id": StringMatching /\\[a-f0-9\\]\\{24\\}/,
|
||||
"last_triggered_at": null,
|
||||
|
@ -57,7 +57,7 @@ Object {
|
|||
"last_triggered_status": null,
|
||||
"name": "Edit Test",
|
||||
"secret": "thisissecret",
|
||||
"target_url": "https://example.com/new-subscriber",
|
||||
"target_url": "https://example.com/new-member",
|
||||
"updated_at": StringMatching /\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}/,
|
||||
},
|
||||
],
|
||||
|
|
|
@ -87,8 +87,8 @@ describe('Webhooks API', function () {
|
|||
.body({
|
||||
webhooks: [{
|
||||
name: 'Edit Test',
|
||||
event: 'subscriber.added',
|
||||
target_url: 'https://example.com/new-subscriber',
|
||||
event: 'member.added',
|
||||
target_url: 'https://example.com/new-member',
|
||||
integration_id: 'ignore_me'
|
||||
}]
|
||||
})
|
||||
|
|
|
@ -138,7 +138,7 @@ describe('Webhooks API (canary)', function () {
|
|||
.send({
|
||||
webhooks: [{
|
||||
name: 'Edit Test',
|
||||
event: 'subscriber.added',
|
||||
event: 'member.added',
|
||||
target_url: 'https://example.com/new-subscriber'
|
||||
}]
|
||||
})
|
||||
|
|
|
@ -630,12 +630,12 @@ DataGenerator.Content = {
|
|||
webhooks: [
|
||||
{
|
||||
id: ObjectId().toHexString(),
|
||||
event: 'subscriber.added',
|
||||
event: 'member.added',
|
||||
target_url: 'https://example.com/webhooks/subscriber-added'
|
||||
},
|
||||
{
|
||||
id: ObjectId().toHexString(),
|
||||
event: 'subscriber.removed',
|
||||
event: 'member.removed',
|
||||
target_url: 'https://example.com/webhooks/subscriber-removed'
|
||||
}
|
||||
],
|
||||
|
|
Loading…
Add table
Reference in a new issue