mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 05:37:34 +03:00
Cleaned up mention of subscribers
in test folder
refs https://github.com/TryGhost/Toolbox/issues/308 - we had a few mentions of `subscribers` in the test suite data generator but this shouldn't be used any more because it's an ancienttttt concept - removing this for v5 as it helps to clean the codebase
This commit is contained in:
parent
51835c5c80
commit
0f5c22a38d
@ -16,7 +16,6 @@ const expectedProperties = {
|
||||
tags: ['tags', 'meta'],
|
||||
users: ['users', 'meta'],
|
||||
settings: ['settings', 'meta'],
|
||||
subscribers: ['subscribers', 'meta'],
|
||||
roles: ['roles'],
|
||||
pagination: ['page', 'limit', 'pages', 'total', 'next', 'prev'],
|
||||
slugs: ['slugs'],
|
||||
@ -129,9 +128,6 @@ const expectedProperties = {
|
||||
setting: _(schema.settings)
|
||||
.keys()
|
||||
,
|
||||
subscriber: _(schema.subscribers)
|
||||
.keys()
|
||||
,
|
||||
member: [
|
||||
'id',
|
||||
'uuid',
|
||||
|
@ -8,7 +8,6 @@ const expectedProperties = {
|
||||
tags: ['tags', 'meta'],
|
||||
users: ['users', 'meta'],
|
||||
settings: ['settings', 'meta'],
|
||||
subscribers: ['subscribers', 'meta'],
|
||||
roles: ['roles'],
|
||||
pagination: ['page', 'limit', 'pages', 'total', 'next', 'prev'],
|
||||
slugs: ['slugs'],
|
||||
|
@ -294,17 +294,6 @@ DataGenerator.Content = {
|
||||
}
|
||||
],
|
||||
|
||||
subscribers: [
|
||||
{
|
||||
id: ObjectId().toHexString(),
|
||||
email: 'subscriber1@test.com'
|
||||
},
|
||||
{
|
||||
id: ObjectId().toHexString(),
|
||||
email: 'subscriber2@test.com'
|
||||
}
|
||||
],
|
||||
|
||||
members: [
|
||||
{
|
||||
id: ObjectId().toHexString(),
|
||||
@ -791,7 +780,6 @@ DataGenerator.Content = {
|
||||
};
|
||||
|
||||
// set up belongs_to relationships
|
||||
DataGenerator.Content.subscribers[0].post_id = DataGenerator.Content.posts[0].id;
|
||||
DataGenerator.Content.api_keys[0].integration_id = DataGenerator.Content.integrations[0].id;
|
||||
DataGenerator.Content.api_keys[1].integration_id = DataGenerator.Content.integrations[0].id;
|
||||
DataGenerator.Content.webhooks[0].integration_id = DataGenerator.Content.integrations[0].id;
|
||||
|
Loading…
Reference in New Issue
Block a user