persistgraphql
Advanced tools
Comparing version 0.3.9 to 0.3.10
@@ -150,3 +150,3 @@ "use strict"; | ||
Promise.all(promises).then(function (queryStrings) { | ||
resolve(queryStrings.reduce(function (x, y) { return x + y; })); | ||
resolve(queryStrings.reduce(function (x, y) { return x + y; }, '')); | ||
}); | ||
@@ -153,0 +153,0 @@ }); |
@@ -216,2 +216,8 @@ "use strict"; | ||
}); | ||
it('should process a directory with no graphql files', function (done) { | ||
egql.processInputPath('./test/fixtures/no_queries').then(function (result) { | ||
assert.equal(Object.keys(result).length, 2); | ||
done(); | ||
}); | ||
}); | ||
it('should process a file with a fragment reference to a different file', function () { | ||
@@ -218,0 +224,0 @@ var expectedQuery = (_a = ["\n query {\n author {\n ...details\n }\n }\n fragment details on Author {\n firstName\n lastName\n }\n "], _a.raw = ["\n query {\n author {\n ...details\n }\n }\n fragment details on Author {\n firstName\n lastName\n }\n "], graphql_tag_1.default(_a)); |
{ | ||
"name": "persistgraphql", | ||
"version": "0.3.9", | ||
"version": "0.3.10", | ||
"description": "A build tool for GraphQL projects.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
122741
1295