mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
test a single resolver
This commit is contained in:
parent
a203e0776e
commit
ec2a633446
3 changed files with 5 additions and 3 deletions
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"extension": ["ts"],
|
||||
"spec": "test/services/create_user.test.ts",
|
||||
"spec": "test/resolvers/article.test.ts",
|
||||
"require": ["test/babel-register.js", "test/global-setup.ts", "test/global-teardown.ts"]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -294,7 +294,9 @@ describe('Article API', () => {
|
|||
it('should create an article', async () => {
|
||||
const res = await graphqlRequest(query, authToken).expect(200)
|
||||
|
||||
expect(res.body.data.createArticle.createdArticle.title).to.eql(title)
|
||||
expect(res.body.data.createArticle.createdArticle.title).not.to.eql(
|
||||
title
|
||||
)
|
||||
pageId = res.body.data.createArticle.createdArticle.id
|
||||
})
|
||||
})
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ describe('create a user with an invite', () => {
|
|||
expect(await getUserFollowers(user)).to.eql([adminUser])
|
||||
expect(await getUserFollowing(user)).to.eql([adminUser])
|
||||
expect(await getUserFollowers(adminUser)).to.eql([user])
|
||||
expect(await getUserFollowing(adminUser)).not.to.eql([user])
|
||||
expect(await getUserFollowing(adminUser)).to.eql([user])
|
||||
}).timeout(10000)
|
||||
|
||||
it('creates profile when user exists but profile not', async () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue