From deaf3f11dfb017fe1c4d8d0793003b2ed9be2dcd Mon Sep 17 00:00:00 2001 From: James Baxley Date: Sun, 12 Jun 2016 21:33:18 -0400 Subject: [PATCH 1/2] update tracer mock report to be function and add mock of submit --- src/apolloServer.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/apolloServer.js b/src/apolloServer.js index a13074ee975..8ed4fe3a0d9 100644 --- a/src/apolloServer.js +++ b/src/apolloServer.js @@ -135,7 +135,11 @@ export default function apolloServer(options, ...rest) { // Tracer-related stuff ------------------------------------------------ - tracerLogger = { log: undefined, report: undefined }; + tracerLogger = { + log: undefined, + report: () => {}, + sumbit: () => {} + }; if (tracer) { tracerLogger = tracer.newLoggerInstance(); tracerLogger.log('request.info', { From 8f64f9dd0c91a4ee8b35d3a5738583e4b0db232d Mon Sep 17 00:00:00 2001 From: James Baxley Date: Sun, 12 Jun 2016 21:39:01 -0400 Subject: [PATCH 2/2] update changelog to mention bug fix for tracer --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 16ac1a16046..98a60938bad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +### v.NEXT + +* BUG: Fixed a bug with tracer mocks that would throw a TypeError when using Ava [#26](https://github.com/apollostack/apollo-server/pull/26) ### v0.1.3