0
Fork 0
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:
Naz 2022-05-26 14:45:36 +08:00
parent 2a0c1f9fb6
commit 939496487d
4 changed files with 7 additions and 7 deletions

View file

@ -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\\}/,
},
],

View file

@ -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'
}]
})

View file

@ -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'
}]
})

View file

@ -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'
}
],