feat(graphql): added simple graphql service with new backend plugin

This commit is contained in:
blam
2020-07-23 20:21:16 +02:00
parent 360200387e
commit 61257d533a
10 changed files with 57 additions and 15 deletions
+1
View File
@@ -15,4 +15,5 @@
*/
require('whatwg-fetch');
export * from './service/router';
+2 -2
View File
@@ -34,9 +34,9 @@ describe('createRouter', () => {
jest.resetAllMocks();
});
describe('GET /ping', () => {
describe('GET /health', () => {
it('returns ok', async () => {
const response = await request(app).get('/ping');
const response = await request(app).get('/health');
expect(response.status).toEqual(200);
expect(response.body).toEqual({ status: 'ok' });
+2
View File
@@ -14,3 +14,5 @@
* limitations under the License.
*/
require('whatwg-fetch');
export {};