Skip to content

Commit b8d2b25

Browse files
committed
Add e2e test, fix bug
1 parent 2f57760 commit b8d2b25

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

graphql/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import Aggregator from "./aggregator";
22
import Getter from "./getter";
33
import Explorer from "./explorer";
4+
import Raw from "./raw";
45

56
const graphql = (client) => {
67
return {

graphql/journey.test.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,17 @@ describe("the graphql journey", () => {
1212
return setup(client);
1313
});
1414

15+
16+
test("graphql raw method", () => {
17+
return client.graphql
18+
.raw(" {Get{Article{title url wordCount}}}")
19+
.do()
20+
.then(function (result) {
21+
expect(result.data.Get.Article.length).toEqual(3);
22+
});
23+
});
24+
25+
1526
test("graphql get method with minimal fields", () => {
1627
return client.graphql
1728
.get()

0 commit comments

Comments
 (0)