Skip to content

Commit 2dcd51b

Browse files
authored
Merge pull request #33 from Tanya-Libatter-Forter/tanyaL-fix_test_utils
use provided context in test utils instead of default
2 parents ac541ca + 25a56c0 commit 2dcd51b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/utils.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ const _runQuery = function({
4848
);
4949

5050
applySchemaCustomDirectives(executionSchema);
51-
52-
return graphql(executionSchema, query, input, {
51+
const contextValue = context || {
5352
req: {body: {query, variables: {}}}
54-
});
53+
};
54+
return graphql(executionSchema, query, input, contextValue);
5555
};
5656

5757
exports.testEqual = function({

0 commit comments

Comments
 (0)