Skip to content

Commit 4e35da1

Browse files
committed
fix broken test with projectionHelper
1 parent 18a0463 commit 4e35da1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resolvers/helpers/__tests__/projection-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe('Resolver helper `projection` ->', () => {
2424
it('should call query.select if projection is provided', () => {
2525
resolveParams.projection = { name: 1, age: 1 };
2626
projectionHelper(resolveParams);
27-
expect(spyFn).to.have.been.called.with(resolveParams.projection);
27+
expect(spyFn).to.have.been.called.with({ name: true, age: true });
2828
});
2929
});
3030
});

0 commit comments

Comments
 (0)