Skip to content

Commit

Permalink
add another expect to tracer test
Browse files Browse the repository at this point in the history
  • Loading branch information
helfer committed May 26, 2016
1 parent 503c31a commit 655d029
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/testTracer.js
Expand Up @@ -73,9 +73,10 @@ describe('Tracer', () => {
const testQuery = `{
returnErr
}`;
return graphql(jsSchema, testQuery, null, { tracer }).then(() => {
return graphql(jsSchema, testQuery, null, { tracer }).then((res) => {
const report = tracer.report('');
expect(report.events.length).to.equal(2);
expect(res.errors.length).to.equal(1);
});
});

Expand Down

0 comments on commit 655d029

Please sign in to comment.