Robert Schäfer f25708875a Refactor badges test
CC @Tirokk @grenzfrequence

* the top level block should correspond with the name of the resolver
  * the block below should be `CreatePost` or `UpdatePost`
* the arguments of client.request are `query/mutation`, `variables` but
  you passed in the `headers` which should go into `new
  GraphQlClient(host, options)`
* re-use the very same mutation to avoid bugs in the tests
* use `await expect(someAsyncMethod).resolves.toEqual(expected)` style for
  extra test assurance
2019-03-03 14:01:50 +01:00
..
2019-01-10 15:59:10 +01:00
2019-02-27 11:08:13 +01:00
2019-02-26 16:35:31 +01:00
2019-03-03 14:01:50 +01:00
2019-02-28 16:16:14 -03:00
2019-02-26 16:35:31 +01:00
2019-02-26 16:35:31 +01:00