Skip to content

Commit 49ab977

Browse files
borodayevnodkz
authored andcommitted
refactor: rename responseFromRestApi to restApiResponse
1 parent d90b538 commit 49ab977

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/__fixtures__/Film.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import fetch from 'node-fetch';
44
import { composeWithJson } from '../index';
55
import { PeopleTC } from './People';
66

7-
const responseFromRestApi = {
7+
const restApiResponse = {
88
title: 'The Empire Strikes Back',
99
episode_id: 5,
1010
opening_crawl: 'It is a dark time for ...',
@@ -18,7 +18,7 @@ const responseFromRestApi = {
1818
],
1919
};
2020

21-
export const FilmTC = composeWithJson('Film', responseFromRestApi);
21+
export const FilmTC = composeWithJson('Film', restApiResponse);
2222

2323
// //////////////
2424
// RESOLVERS aka FieldConfig in GraphQL

src/__fixtures__/People.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import fetch from 'node-fetch';
44
import { composeWithJson } from '../index';
55
import { FilmTC } from './Film';
66

7-
const responseFromRestApi = {
7+
const restApiResponse = {
88
name: 'Luke Skywalker',
99
height: '172',
1010
mass: '77',
@@ -20,7 +20,7 @@ const responseFromRestApi = {
2020
],
2121
};
2222

23-
export const PeopleTC = composeWithJson('People', responseFromRestApi);
23+
export const PeopleTC = composeWithJson('People', restApiResponse);
2424

2525
// //////////////
2626
// RESOLVERS aka FieldConfig in GraphQL

0 commit comments

Comments
 (0)