express-graphql
express-graphql copied to clipboard
Improve tests
- Improve formatting of queries in tests.
- Improve test descriptions.
- Compare uninitialized variables against
undefined. Comparing againstnullwill pass whether the variables were assigned the request/response object or leftundefined. However, the intention of the expectation is to check that uninitialized variables were assigned a value (i.e., notundefined). - Remove duplicated test
it('will send request and response when using thunk'). There is already another test which tests that the options function is passed the request and response:it('provides an options function with arguments').