Commit c714edf4 authored by Illya Klymov's avatar Illya Klymov

Address reviewer comments

parent 4955e03e
...@@ -156,7 +156,7 @@ describe('Bulk import status poller', () => { ...@@ -156,7 +156,7 @@ describe('Bulk import status poller', () => {
const [[doc]] = clientMock.query.mock.calls; const [[doc]] = clientMock.query.mock.calls;
const { selections } = doc.query.definitions[0].selectionSet; const { selections } = doc.query.definitions[0].selectionSet;
expect(selections.every(field => field.name.value === 'group')).toBeTruthy(); expect(selections.every(field => field.name.value === 'group')).toBeTruthy();
expect(selections.length).toBe(2); expect(selections).toHaveLength(2);
expect(selections.map(sel => sel.arguments[0].value.value)).toStrictEqual([ expect(selections.map(sel => sel.arguments[0].value.value)).toStrictEqual([
`${TARGET_NAMESPACE}/${STARTED_GROUP_1.import_target.new_name}`, `${TARGET_NAMESPACE}/${STARTED_GROUP_1.import_target.new_name}`,
`${TARGET_NAMESPACE}/${STARTED_GROUP_2.import_target.new_name}`, `${TARGET_NAMESPACE}/${STARTED_GROUP_2.import_target.new_name}`,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment