You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
463 B
23 lines
463 B
5 years ago
|
import { callSchema } from "../../utils/callSchema";
|
||
5 years ago
|
|
||
|
const usersQuery = `
|
||
|
query {
|
||
|
users {
|
||
|
id
|
||
|
}
|
||
|
}`
|
||
|
|
||
|
describe("user resolver", () => {
|
||
5 years ago
|
it("should return an empty array when no users are created", async () => {
|
||
5 years ago
|
const response = await callSchema({
|
||
|
source: usersQuery,
|
||
|
})
|
||
|
|
||
|
expect(response).toMatchObject({
|
||
|
data: {
|
||
|
users: [],
|
||
|
},
|
||
|
})
|
||
|
})
|
||
|
})
|