Skip to content

Commit ff253f5

Browse files
committed
Merge branch 'sh/fragment-tests' of github.com:oslabs-beta/GraphQL-Gate into sh/fragment-tests
2 parents 02e221b + ca6a114 commit ff253f5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/analysis/typeComplexityAnalysis.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import { TypeWeightObject, Variables } from '../../src/@types/buildTypeWeights';
3636
name: String!
3737
homePlanet: String
3838
friends(first: Int): [Character]
39+
humanFriends(first: Int): [Human]
3940
appearsIn: [Episode]!
4041
}
4142
@@ -188,6 +189,10 @@ describe('Test getQueryTypeComplexity function', () => {
188189
resolveTo: 'character',
189190
weight: mockHumanFriendsFunction,
190191
},
192+
humanFriends: {
193+
resolveTo: 'human',
194+
weight: mockHumanFriendsFunction,
195+
},
191196
},
192197
},
193198
droid: {

0 commit comments

Comments
 (0)