Comparing version 0.3.0 to 0.3.1
@@ -42,2 +42,18 @@ // Generated by BUCKLESCRIPT VERSION 1.8.2, PLEASE EDIT WITH CARE | ||
describe("Utilities#buildSchema", (function () { | ||
return Jest.testPromise("creates a usable schema with nested types", (function () { | ||
var schema = Graphql.buildSchema("type Query { me: User } type User { name: String }"); | ||
var rootValue = { | ||
me: (function () { | ||
return { | ||
name: "reason" | ||
}; | ||
}) | ||
}; | ||
return GraphQL.run(/* Some */[rootValue], /* None */0, /* None */0, /* None */0, /* None */0, schema, "{ me { name } }").then((function (execResult) { | ||
return Promise.resolve(Jest.ExpectJs[/* toEqual */11]("reason")(Jest.ExpectJs[/* expect */0](execResult.data.me.name))); | ||
})); | ||
})); | ||
})); | ||
/* schema Not a pure module */ |
@@ -7,2 +7,14 @@ // Generated by BUCKLESCRIPT VERSION 1.8.2, PLEASE EDIT WITH CARE | ||
var Language = /* module */[]; | ||
var $$Error = /* module */[]; | ||
var Type = /* module */[]; | ||
var Execution = /* module */[]; | ||
var Utilities = /* module */[]; | ||
var Validation = /* module */[]; | ||
function run(rootValue, contextValue, variableValue, operationName, fieldResolver, schema, source) { | ||
@@ -20,21 +32,9 @@ return Graphql.graphql({ | ||
var Execution = 0; | ||
var Type = 0; | ||
var Utilities = 0; | ||
var $$Error = 0; | ||
var Language = 0; | ||
var Validation = 0; | ||
exports.Language = Language; | ||
exports.$$Error = $$Error; | ||
exports.Type = Type; | ||
exports.Execution = Execution; | ||
exports.Type = Type; | ||
exports.Utilities = Utilities; | ||
exports.$$Error = $$Error; | ||
exports.Language = Language; | ||
exports.Validation = Validation; | ||
exports.run = run; | ||
/* graphql Not a pure module */ |
{ | ||
"name": "bs-graphql", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "BuckleScript binding for graphql-js", | ||
@@ -19,3 +19,6 @@ "keywords": [ | ||
"graphql": "^0.10.5" | ||
}, | ||
"devDependencies": { | ||
"bs-jest": "^0.1.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
185184
1
29
92