diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-24 21:09:05 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-24 21:09:05 +0300 |
commit | c2367afbf57ebc65d5b78a743b5d6a91f0aece9f (patch) | |
tree | 165c2c54bf72ab3a3a9417d97f63ece5c9eba9f5 /spec/javascripts/releases | |
parent | 51a9512965d86e3094968fa514e4ae8a96d38cf3 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/javascripts/releases')
-rw-r--r-- | spec/javascripts/releases/components/app_index_spec.js | 6 | ||||
-rw-r--r-- | spec/javascripts/releases/stores/modules/list/actions_spec.js | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/spec/javascripts/releases/components/app_index_spec.js b/spec/javascripts/releases/components/app_index_spec.js index bcf062f357a..962fe9c448d 100644 --- a/spec/javascripts/releases/components/app_index_spec.js +++ b/spec/javascripts/releases/components/app_index_spec.js @@ -12,6 +12,7 @@ import { release, releases, } from '../mock_data'; +import { convertObjectPropsToCamelCase } from '~/lib/utils/common_utils'; describe('Releases App ', () => { const Component = Vue.extend(app); @@ -27,7 +28,10 @@ describe('Releases App ', () => { beforeEach(() => { store = createStore({ list: listModule }); - releasesPagination = _.range(21).map(index => ({ ...release, tag_name: `${index}.00` })); + releasesPagination = _.range(21).map(index => ({ + ...convertObjectPropsToCamelCase(release, { deep: true }), + tagName: `${index}.00`, + })); }); afterEach(() => { diff --git a/spec/javascripts/releases/stores/modules/list/actions_spec.js b/spec/javascripts/releases/stores/modules/list/actions_spec.js index 037c9d8d54a..bf85e18997b 100644 --- a/spec/javascripts/releases/stores/modules/list/actions_spec.js +++ b/spec/javascripts/releases/stores/modules/list/actions_spec.js @@ -8,16 +8,18 @@ import { import state from '~/releases/stores/modules/list/state'; import * as types from '~/releases/stores/modules/list/mutation_types'; import api from '~/api'; -import { parseIntPagination } from '~/lib/utils/common_utils'; -import { pageInfoHeadersWithoutPagination, releases } from '../../../mock_data'; +import { parseIntPagination, convertObjectPropsToCamelCase } from '~/lib/utils/common_utils'; +import { pageInfoHeadersWithoutPagination, releases as originalReleases } from '../../../mock_data'; describe('Releases State actions', () => { let mockedState; let pageInfo; + let releases; beforeEach(() => { mockedState = state(); pageInfo = parseIntPagination(pageInfoHeadersWithoutPagination); + releases = convertObjectPropsToCamelCase(originalReleases, { deep: true }); }); describe('requestReleases', () => { |