mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Update test
This commit is contained in:
parent
79cea907a3
commit
da7a2d76aa
1 changed files with 8 additions and 2 deletions
|
|
@ -211,9 +211,12 @@ describe('Subscriptions API', () => {
|
|||
undefined,
|
||||
SubscriptionType.Rss
|
||||
)
|
||||
const rssItems = subscriptions.filter(
|
||||
(s) => s.type == SubscriptionType.Rss
|
||||
)
|
||||
const res = await graphqlRequest(query, authToken).expect(200)
|
||||
expect(res.body.data.subscriptions.subscriptions).to.eql(
|
||||
subscriptions.map((sub) => ({
|
||||
rssItems.map((sub) => ({
|
||||
id: sub.id,
|
||||
name: sub.name,
|
||||
}))
|
||||
|
|
@ -249,9 +252,12 @@ describe('Subscriptions API', () => {
|
|||
undefined,
|
||||
SubscriptionType.Rss
|
||||
)
|
||||
const newsletters = subscriptions.filter(
|
||||
(s) => s.type == SubscriptionType.Newsletter
|
||||
)
|
||||
const res = await graphqlRequest(query, authToken).expect(200)
|
||||
expect(res.body.data.subscriptions.subscriptions).to.eql(
|
||||
subscriptions.map((sub) => ({
|
||||
newsletters.map((sub) => ({
|
||||
id: sub.id,
|
||||
name: sub.name,
|
||||
}))
|
||||
|
|
|
|||
Loading…
Reference in a new issue