diff options
Diffstat (limited to 'spec/frontend/clusters_list/components/agents_spec.js')
-rw-r--r-- | spec/frontend/clusters_list/components/agents_spec.js | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/spec/frontend/clusters_list/components/agents_spec.js b/spec/frontend/clusters_list/components/agents_spec.js index 2dec7cdc973..c9ca10f6bf7 100644 --- a/spec/frontend/clusters_list/components/agents_spec.js +++ b/spec/frontend/clusters_list/components/agents_spec.js @@ -19,7 +19,6 @@ describe('Agents', () => { }; const provideData = { projectPath: 'path/to/project', - kasAddress: 'kas.example.com', }; const createWrapper = ({ props = {}, agents = [], pageInfo = null, trees = [], count = 0 }) => { @@ -27,6 +26,7 @@ describe('Agents', () => { const apolloQueryResponse = { data: { project: { + id: '1', clusterAgents: { nodes: agents, pageInfo, tokens: { nodes: [] }, count }, repository: { tree: { trees: { nodes: trees, pageInfo } } }, }, @@ -76,6 +76,7 @@ describe('Agents', () => { tokens: { nodes: [ { + id: 'token-1', lastUsedAt: testDate, }, ], @@ -87,6 +88,7 @@ describe('Agents', () => { const trees = [ { + id: 'tree-1', name: 'agent-2', path: '.gitlab/agents/agent-2', webPath: '/project/path/.gitlab/agents/agent-2', @@ -216,24 +218,6 @@ describe('Agents', () => { }); }); - describe('when the agent configurations are present', () => { - const trees = [ - { - name: 'agent-1', - path: '.gitlab/agents/agent-1', - webPath: '/project/path/.gitlab/agents/agent-1', - }, - ]; - - beforeEach(() => { - return createWrapper({ agents: [], trees }); - }); - - it('should pass the correct hasConfigurations boolean value to empty state component', () => { - expect(findEmptyState().props('hasConfigurations')).toEqual(true); - }); - }); - describe('when agents query has errored', () => { beforeEach(() => { return createWrapper({ agents: null }); |