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:
Daniel Lockyer 2022-04-25 18:11:06 +01:00
parent 51835c5c80
commit 0f5c22a38d
No known key found for this signature in database
GPG Key ID: D21186F0B47295AD
3 changed files with 0 additions and 17 deletions

View File

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

View File

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

View File

@ -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;