Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit 6fc7baf

Browse files
authored
Merge pull request #392 from wincent/glh/deps
Update deps
2 parents fc0063f + 308feea commit 6fc7baf

File tree

3 files changed

+154
-184
lines changed

3 files changed

+154
-184
lines changed

package.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -63,32 +63,32 @@
6363
"raw-body": "^2.1.0"
6464
},
6565
"devDependencies": {
66-
"babel-cli": "6.24.1",
66+
"babel-cli": "^6.26.0",
6767
"babel-eslint": "7.2.3",
6868
"babel-plugin-transform-async-to-generator": "6.24.1",
6969
"babel-plugin-transform-class-properties": "6.24.1",
7070
"babel-plugin-transform-flow-strip-types": "6.22.0",
71-
"babel-plugin-transform-runtime": "6.22.0",
71+
"babel-plugin-transform-runtime": "^6.23.0",
7272
"babel-preset-es2015": "6.24.1",
73-
"babel-register": "6.24.1",
74-
"babel-runtime": "6.25.0",
73+
"babel-register": "^6.26.0",
74+
"babel-runtime": "^6.26.0",
7575
"body-parser": "1.17.2",
76-
"chai": "4.1.1",
76+
"chai": "^4.1.2",
7777
"connect": "3.6.3",
7878
"coveralls": "2.13.1",
79-
"eslint": "4.4.1",
80-
"eslint-plugin-flowtype": "2.35.0",
81-
"express": "4.14.1",
79+
"eslint": "^4.6.0",
80+
"eslint-plugin-flowtype": "^2.35.1",
81+
"express": "^4.15.4",
8282
"express3": "*",
8383
"flow-bin": "0.52.0",
8484
"graphql": "0.11.2",
8585
"isparta": "4.0.0",
8686
"mocha": "3.5.0",
8787
"multer": "1.3.0",
88-
"prettier": "^1.3.1",
88+
"prettier": "^1.6.1",
8989
"restify": "4.3.0",
9090
"sane": "2.0.0",
91-
"sinon": "3.2.0",
91+
"sinon": "^3.2.1",
9292
"supertest": "3.0.0"
9393
},
9494
"peerDependencies": {

src/__tests__/http-test.js

+26-18
Original file line numberDiff line numberDiff line change
@@ -553,10 +553,12 @@ describe('test harness', () => {
553553
}),
554554
);
555555

556-
const response = await request(app).post(urlString()).send({
557-
query: 'query helloWho($who: String){ test(who: $who) }',
558-
variables: JSON.stringify({ who: 'Dolly' }),
559-
});
556+
const response = await request(app)
557+
.post(urlString())
558+
.send({
559+
query: 'query helloWho($who: String){ test(who: $who) }',
560+
variables: JSON.stringify({ who: 'Dolly' }),
561+
});
560562

561563
expect(response.text).to.equal('{"data":{"test":"Hello Dolly"}}');
562564
});
@@ -572,10 +574,12 @@ describe('test harness', () => {
572574
}),
573575
);
574576

575-
const response = await request(app).post(urlString()).send({
576-
query: 'query helloWho($who: String){ test(who: $who) }',
577-
variables: { who: 'Dolly' },
578-
});
577+
const response = await request(app)
578+
.post(urlString())
579+
.send({
580+
query: 'query helloWho($who: String){ test(who: $who) }',
581+
variables: { who: 'Dolly' },
582+
});
579583

580584
expect(response.text).to.equal('{"data":{"test":"Hello Dolly"}}');
581585
});
@@ -591,12 +595,14 @@ describe('test harness', () => {
591595
}),
592596
);
593597

594-
const response = await request(app).post(urlString()).send(
595-
stringify({
596-
query: 'query helloWho($who: String){ test(who: $who) }',
597-
variables: JSON.stringify({ who: 'Dolly' }),
598-
}),
599-
);
598+
const response = await request(app)
599+
.post(urlString())
600+
.send(
601+
stringify({
602+
query: 'query helloWho($who: String){ test(who: $who) }',
603+
variables: JSON.stringify({ who: 'Dolly' }),
604+
}),
605+
);
600606

601607
expect(response.text).to.equal('{"data":{"test":"Hello Dolly"}}');
602608
});
@@ -683,17 +689,19 @@ describe('test harness', () => {
683689
})),
684690
);
685691

686-
const response = await request(app).post(urlString()).send({
687-
query: `
692+
const response = await request(app)
693+
.post(urlString())
694+
.send({
695+
query: `
688696
query helloYou { test(who: "You"), ...shared }
689697
query helloWorld { test(who: "World"), ...shared }
690698
query helloDolly { test(who: "Dolly"), ...shared }
691699
fragment shared on QueryRoot {
692700
shared: test(who: "Everyone")
693701
}
694702
`,
695-
operationName: 'helloWorld',
696-
});
703+
operationName: 'helloWorld',
704+
});
697705

698706
expect(JSON.parse(response.text)).to.deep.equal({
699707
data: {

0 commit comments

Comments
 (0)