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

Commit a6166c8

Browse files
committed
Update prettier
1 parent a156297 commit a6166c8

File tree

3 files changed

+29
-14
lines changed

3 files changed

+29
-14
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"mocha": "6.1.4",
7070
"multer": "1.4.1",
7171
"nyc": "14.1.1",
72-
"prettier": "1.18.2",
72+
"prettier": "1.19.1",
7373
"promise-polyfill": "^8.1.3",
7474
"react": "^16.8.6",
7575
"react-dom": "^16.8.6",

src/__tests__/usage-test.js

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@ describe('Useful errors when incorrectly used', () => {
1818
it('requires option factory function to return object', async () => {
1919
const app = express();
2020

21-
// $DisableFlowOnNegativeTest
22-
app.use('/graphql', graphqlHTTP(() => null));
21+
app.use(
22+
'/graphql',
23+
// $DisableFlowOnNegativeTest
24+
graphqlHTTP(() => null),
25+
);
2326

2427
const response = await request(app).get('/graphql?query={test}');
2528

@@ -37,8 +40,11 @@ describe('Useful errors when incorrectly used', () => {
3740
it('requires option factory function to return object or promise of object', async () => {
3841
const app = express();
3942

40-
// $DisableFlowOnNegativeTest
41-
app.use('/graphql', graphqlHTTP(() => Promise.resolve(null)));
43+
app.use(
44+
'/graphql',
45+
// $DisableFlowOnNegativeTest
46+
graphqlHTTP(() => Promise.resolve(null)),
47+
);
4248

4349
const response = await request(app).get('/graphql?query={test}');
4450

@@ -56,8 +62,11 @@ describe('Useful errors when incorrectly used', () => {
5662
it('requires option factory function to return object with schema', async () => {
5763
const app = express();
5864

59-
// $DisableFlowOnNegativeTest
60-
app.use('/graphql', graphqlHTTP(() => ({})));
65+
app.use(
66+
'/graphql',
67+
// $DisableFlowOnNegativeTest
68+
graphqlHTTP(() => ({})),
69+
);
6170

6271
const response = await request(app).get('/graphql?query={test}');
6372

@@ -72,8 +81,11 @@ describe('Useful errors when incorrectly used', () => {
7281
it('requires option factory function to return object or promise of object with schema', async () => {
7382
const app = express();
7483

75-
// $DisableFlowOnNegativeTest
76-
app.use('/graphql', graphqlHTTP(() => Promise.resolve({})));
84+
app.use(
85+
'/graphql',
86+
// $DisableFlowOnNegativeTest
87+
graphqlHTTP(() => Promise.resolve({})),
88+
);
7789

7890
const response = await request(app).get('/graphql?query={test}');
7991

@@ -91,7 +103,10 @@ describe('Useful errors when incorrectly used', () => {
91103

92104
const app = express();
93105

94-
app.use('/graphql', graphqlHTTP(() => Promise.resolve({ schema })));
106+
app.use(
107+
'/graphql',
108+
graphqlHTTP(() => Promise.resolve({ schema })),
109+
);
95110

96111
const response = await request(app).get('/graphql?query={test}');
97112

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2628,10 +2628,10 @@ prelude-ls@~1.1.2:
26282628
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54"
26292629
integrity sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=
26302630

2631-
prettier@1.18.2:
2632-
version "1.18.2"
2633-
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.18.2.tgz#6823e7c5900017b4bd3acf46fe9ac4b4d7bda9ea"
2634-
integrity sha512-OeHeMc0JhFE9idD4ZdtNibzY0+TPHSpSSb9h8FqtP+YnoZZ1sl8Vc9b1sasjfymH3SonAF4QcA2+mzHPhMvIiw==
2631+
prettier@1.19.1:
2632+
version "1.19.1"
2633+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb"
2634+
integrity sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==
26352635

26362636
process-nextick-args@~2.0.0:
26372637
version "2.0.1"

0 commit comments

Comments
 (0)