Skip to content

Commit bf93eda

Browse files
Clean up the manual lint test syntax
1 parent b745b68 commit bf93eda

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/lint-test.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ suite('manual-lint-test', () => {
99
storefrontAccessToken: 'abc123'
1010
};
1111

12-
test('it ensures that all Connections include pageInfo', () => {
12+
test('it has pageInfo on all relay connection types', () => {
1313
const client = Client.buildClient(config);
1414
const objectTypes = client.graphQLClient.typeBundle.types;
1515

16-
for (const key in objectTypes) {
17-
if (objectTypes.hasOwnProperty(key) && key.includes('Connection')) {
16+
Object.keys(objectTypes)
17+
.filter((key) => key.includes('Connection'))
18+
.forEach((key) => {
1819
assert.equal(objectTypes[key].fieldBaseTypes.pageInfo, 'PageInfo');
19-
}
20-
}
20+
});
2121
});
2222
});

0 commit comments

Comments
 (0)