Skip to content

Commit

Permalink
chore(package): update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
tothandras committed Oct 30, 2015
1 parent 9d5d284 commit 3d5715b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": [
Expand Down
8 changes: 4 additions & 4 deletions src/schema/schema.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,17 +144,17 @@ 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() {
this.sandbox.stub(model, 'getModels').returns({});
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);
});
});
});

0 comments on commit 3d5715b

Please sign in to comment.