0.1.1 • Published 7 years ago

@veriown/chai-graphql v0.1.1

Weekly downloads
2
License
UNLICENSED
Repository
-
Last release
7 years ago

@veriown/chai-graphql

Chai plugin for assisting writing chai assertions for GraphQL related code

This package extends chai-graphql, so all the assertions supported by chai-graphql are supported as well. Following extra assertions are provided

relayConnection

Checks if an object is a valid relay-connection. A graphql connection must have required properties:

  • edges
    • cursor
    • node
  • count
  • pageInfo
    • hasPreviousPage
    • hasNextPage

e.g

expect(anObject).to.be.a.relayConnection;
0.1.1

7 years ago

0.1.0

7 years ago