We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b745b68 commit bf93edaCopy full SHA for bf93eda
test/lint-test.js
@@ -9,14 +9,14 @@ suite('manual-lint-test', () => {
9
storefrontAccessToken: 'abc123'
10
};
11
12
- test('it ensures that all Connections include pageInfo', () => {
+ test('it has pageInfo on all relay connection types', () => {
13
const client = Client.buildClient(config);
14
const objectTypes = client.graphQLClient.typeBundle.types;
15
16
- for (const key in objectTypes) {
17
- if (objectTypes.hasOwnProperty(key) && key.includes('Connection')) {
+ Object.keys(objectTypes)
+ .filter((key) => key.includes('Connection'))
18
+ .forEach((key) => {
19
assert.equal(objectTypes[key].fieldBaseTypes.pageInfo, 'PageInfo');
- }
20
+ });
21
});
22
0 commit comments