Skip to content

Commit

Permalink
Update graphql to version 0.7.0 馃殌 (apollographql#108)
Browse files Browse the repository at this point in the history
* chore(package): update graphql to version 0.7.0

https://greenkeeper.io/

* fix failing tests
  • Loading branch information
greenkeeperio-bot authored and helfer committed Aug 27, 2016
1 parent 3d810da commit e60f279
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -50,7 +50,7 @@
"connect": "^3.4.1",
"express": "^4.14.0",
"fibers": "^1.0.13",
"graphql": "^0.6.1",
"graphql": "^0.7.0",
"hapi": "^14.0.0",
"istanbul": "1.0.0-alpha.2",
"koa": "^2.0.0-alpha.4",
Expand All @@ -67,7 +67,7 @@
"typings": "^1.3.2"
},
"peerDependencies": {
"graphql": "^0.6.1"
"graphql": "^0.6.1 || ^0.7.0"
},
"typings": "dist/index.d.ts",
"typescript": {
Expand Down
4 changes: 2 additions & 2 deletions src/core/runQuery.test.ts
Expand Up @@ -86,15 +86,15 @@ describe('runQuery', () => {

it('returns a syntax error if the query string contains one', () => {
const query = `query { test`;
const expected = 'Syntax Error GraphQL (1:13) Expected Name, found EOF\n\n1: query { test\n ^\n';
const expected = /Syntax Error GraphQL/;
return runQuery({
schema: Schema,
query: query,
variables: { base: 1 },
}).then((res) => {
expect(res.data).to.be.undefined;
expect(res.errors.length).to.equal(1);
return expect(res.errors[0].message).to.deep.equal(expected);
return expect(res.errors[0].message).to.match(expected);
});
});

Expand Down
2 changes: 1 addition & 1 deletion src/modules/operationStore.test.ts
Expand Up @@ -86,7 +86,7 @@ describe('operationStore', () => {
const query = `query testquery{ testString`;

const store = new OperationStore(Schema);
return expect(() => store.put(query)).to.throw(/found EOF/);
return expect(() => store.put(query)).to.throw(/Syntax Error GraphQL/);
});

it('throws a validation error if the query is invalid', () => {
Expand Down

0 comments on commit e60f279

Please sign in to comment.