summaryrefslogtreecommitdiff
path: root/spec/frontend/registry/getters_spec.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/registry/getters_spec.js')
-rw-r--r--spec/frontend/registry/getters_spec.js46
1 files changed, 0 insertions, 46 deletions
diff --git a/spec/frontend/registry/getters_spec.js b/spec/frontend/registry/getters_spec.js
deleted file mode 100644
index 839aa718997..00000000000
--- a/spec/frontend/registry/getters_spec.js
+++ /dev/null
@@ -1,46 +0,0 @@
-import * as getters from '~/registry/stores/getters';
-
-describe('Getters Registry Store', () => {
- let state;
-
- beforeEach(() => {
- state = {
- isLoading: false,
- endpoint: '/root/empty-project/container_registry.json',
- repos: [
- {
- canDelete: true,
- destroyPath: 'bar',
- id: '134',
- isLoading: false,
- list: [],
- location: 'foo',
- name: 'gitlab-org/omnibus-gitlab/foo',
- tagsPath: 'foo',
- },
- {
- canDelete: true,
- destroyPath: 'bar',
- id: '123',
- isLoading: false,
- list: [],
- location: 'foo',
- name: 'gitlab-org/omnibus-gitlab',
- tagsPath: 'foo',
- },
- ],
- };
- });
-
- describe('isLoading', () => {
- it('should return the isLoading property', () => {
- expect(getters.isLoading(state)).toEqual(state.isLoading);
- });
- });
-
- describe('repos', () => {
- it('should return the repos', () => {
- expect(getters.repos(state)).toEqual(state.repos);
- });
- });
-});