Skip to content

Commit

Permalink
add --harmony options to mocha for destructuring support
Browse files Browse the repository at this point in the history
  • Loading branch information
helfer committed Jun 13, 2016
1 parent a7c8518 commit d21fcd3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"posttest": "npm run lint",
"lint": "tslint ./src/**/*",
"watch": "tsc -w",
"testonly": "mocha --reporter spec --full-trace ./dist/test/tests.js",
"testonly": "mocha --harmony --harmony-destructuring --reporter spec --full-trace ./dist/test/tests.js",
"coverage": "istanbul cover ./node_modules/mocha/bin/_mocha -- --reporter spec --full-trace --recursive ./dist/test",
"postcoverage": "remap-istanbul --input coverage/coverage.raw.json --type lcovonly --output coverage/lcov.info"
},
Expand Down
4 changes: 2 additions & 2 deletions src/core/runQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ function runQuery({
rootValue,
context,
variables,
operationName
operationName,
}: {
schema: GraphQLSchema,
query: string | Document,
rootValue?: any,
context?: any,
variables?: { [key: string]: any },
operationName?: string
operationName?: string,
//logFunction?: function => void
}): Promise<GraphQLResult> {
let documentAST: Document;
Expand Down

0 comments on commit d21fcd3

Please sign in to comment.