Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-04-07 09:09:25 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-04-07 09:09:25 +0300
commit3d064c737e8448880e6180aeddc59000a01aa6a8 (patch)
treec97dcfe02e48426f96865068ffe8dcdd17bb1a96 /spec/frontend
parent7ba5b9babaa5802c39e686c57cbf4a3f4725c4b0 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend')
-rw-r--r--spec/frontend/diffs/store/mutations_spec.js18
-rw-r--r--spec/frontend/releases/components/app_edit_spec.js2
2 files changed, 19 insertions, 1 deletions
diff --git a/spec/frontend/diffs/store/mutations_spec.js b/spec/frontend/diffs/store/mutations_spec.js
index f486a53fc4d..ad05f27b325 100644
--- a/spec/frontend/diffs/store/mutations_spec.js
+++ b/spec/frontend/diffs/store/mutations_spec.js
@@ -51,6 +51,24 @@ describe('DiffsStoreMutations', () => {
});
});
+ describe('SET_DIFF_FILES', () => {
+ it('should set diffFiles in state', () => {
+ const state = {};
+
+ mutations[types.SET_DIFF_FILES](state, ['file', 'another file']);
+
+ expect(state.diffFiles.length).toEqual(2);
+ });
+
+ it('should not set anything except diffFiles in state', () => {
+ const state = {};
+
+ mutations[types.SET_DIFF_FILES](state, ['file', 'another file']);
+
+ expect(Object.keys(state)).toEqual(['diffFiles']);
+ });
+ });
+
describe('SET_DIFF_DATA', () => {
it('should set diff data type properly', () => {
const state = {
diff --git a/spec/frontend/releases/components/app_edit_spec.js b/spec/frontend/releases/components/app_edit_spec.js
index e27c27b292a..bf66f5a5183 100644
--- a/spec/frontend/releases/components/app_edit_spec.js
+++ b/spec/frontend/releases/components/app_edit_spec.js
@@ -66,7 +66,7 @@ describe('Release edit component', () => {
it('renders the description text at the top of the page', () => {
expect(wrapper.find('.js-subtitle-text').text()).toBe(
- 'Releases are based on Git tags. We recommend naming tags that fit within semantic versioning, for example v1.0, v2.0-pre.',
+ 'Releases are based on Git tags. We recommend tags that use semantic versioning, for example v1.0, v2.0-pre.',
);
});