From 4e35da1bf05fe11796bbea4a22ab062eb0a2ac1d Mon Sep 17 00:00:00 2001 From: nodkz Date: Wed, 20 Jul 2016 23:20:12 +0600 Subject: [PATCH] fix broken test with projectionHelper --- src/resolvers/helpers/__tests__/projection-test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resolvers/helpers/__tests__/projection-test.js b/src/resolvers/helpers/__tests__/projection-test.js index 565181d9..48b1cb60 100644 --- a/src/resolvers/helpers/__tests__/projection-test.js +++ b/src/resolvers/helpers/__tests__/projection-test.js @@ -24,7 +24,7 @@ describe('Resolver helper `projection` ->', () => { it('should call query.select if projection is provided', () => { resolveParams.projection = { name: 1, age: 1 }; projectionHelper(resolveParams); - expect(spyFn).to.have.been.called.with(resolveParams.projection); + expect(spyFn).to.have.been.called.with({ name: true, age: true }); }); }); });