From 3d5715b7e92f734bc0233962282bc47dc998afe3 Mon Sep 17 00:00:00 2001 From: Andras Toth Date: Tue, 27 Oct 2015 10:31:57 +0100 Subject: [PATCH] chore(package): update dependencies --- package.json | 20 ++++++++++---------- src/schema/schema.spec.js | 8 ++++---- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index fd84957..6af592d 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,6 @@ "description": "Mongoose adapter for graffiti (Node.js GraphQL ORM)", "main": "lib/index.js", "scripts": { - "start": "node --harmony src/index.js", "test": "NODE_ENV=test mocha --compilers js:babel/register --require co-mocha 'src/**/*.spec.js'", "eslint": "eslint src", "prepublish": "npm test && npm run build", @@ -29,25 +28,26 @@ "Relay" ], "dependencies": { - "graphql-relay": "^0.3.3", + "graphql-relay": "^0.3.4", "lodash": "^3.10.1" }, "peerDependencies": { - "graphql": "^0.4.7" + "graphql": "^0.4.12" }, "devDependencies": { - "babel": "^5.8.23", + "babel": "^5.8.29", "babel-eslint": "^4.1.3", - "babel-istanbul": "^0.3.20", - "chai": "^3.3.0", + "babel-istanbul": "^0.4.1", + "chai": "^3.4.0", "chai-subset": "^1.1.0", "co-mocha": "^1.1.2", - "eslint": "^1.7.1", + "eslint": "^1.7.3", "eslint-config-airbnb": "^0.1.0", + "graphql": "^0.4.12", "mocha": "^2.3.3", - "mongoose": "^4.1.11", - "pre-commit": "^1.1.1", - "sinon": "^1.17.1", + "mongoose": "^4.2.3", + "pre-commit": "^1.1.2", + "sinon": "^1.17.2", "sinon-chai": "^2.8.0" }, "pre-commit": [ diff --git a/src/schema/schema.spec.js b/src/schema/schema.spec.js index 2406e7a..0b843d9 100644 --- a/src/schema/schema.spec.js +++ b/src/schema/schema.spec.js @@ -144,8 +144,8 @@ describe('field', () => { this.sandbox.stub(type, 'getTypes').returns(types); const schema = getSchema([]); expect(schema).instanceOf(GraphQLSchema); - expect(schema._schemaConfig.query.name).to.be.equal('RootQuery'); - expect(schema._schemaConfig.mutation.name).to.be.equal('RootMutation'); + expect(schema._queryType.name).to.be.equal('RootQuery'); + expect(schema._mutationType.name).to.be.equal('RootMutation'); }); it('should return a GraphQL schema without mutations', function getSchemaTest() { @@ -153,8 +153,8 @@ describe('field', () => { this.sandbox.stub(type, 'getTypes').returns(types); const schema = getSchema([], {mutation: false}); expect(schema).instanceOf(GraphQLSchema); - expect(schema._schemaConfig.query.name).to.be.equal('RootQuery'); - expect(schema._schemaConfig.mutation).to.be.equal(undefined); + expect(schema._queryType.name).to.be.equal('RootQuery'); + expect(schema._mutationType).to.be.equal(undefined); }); }); });