summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorFatih Acet <acetfatih@gmail.com>2018-07-03 23:18:27 +0000
committerClement Ho <clemmakesapps@gmail.com>2018-07-03 23:18:27 +0000
commit483864db77acb6db479ecdb8ce4dd121731a8330 (patch)
tree68fad0ba107207a5df667805bbe1af4990b50175 /spec
parent26998c68c936f183ead1a84e404a61160fc646f7 (diff)
downloadgitlab-ce-483864db77acb6db479ecdb8ce4dd121731a8330.tar.gz
Improve performance of toggling diff view type
Diffstat (limited to 'spec')
-rw-r--r--spec/javascripts/diffs/store/mutations_spec.js15
1 files changed, 0 insertions, 15 deletions
diff --git a/spec/javascripts/diffs/store/mutations_spec.js b/spec/javascripts/diffs/store/mutations_spec.js
index 02836fcaeea..1af49f4985c 100644
--- a/spec/javascripts/diffs/store/mutations_spec.js
+++ b/spec/javascripts/diffs/store/mutations_spec.js
@@ -24,21 +24,6 @@ describe('DiffsStoreMutations', () => {
});
});
- describe('SET_DIFF_FILES', () => {
- it('should set diff files to state', () => {
- const filePath = '/first-diff-file-path';
- const state = {};
- const diffFiles = {
- a_mode: 1,
- highlighted_diff_lines: [{ file_path: filePath }],
- };
-
- mutations[types.SET_DIFF_FILES](state, diffFiles);
- expect(state.diffFiles.aMode).toEqual(1);
- expect(state.diffFiles.highlightedDiffLines[0].filePath).toEqual(filePath);
- });
- });
-
describe('SET_DIFF_VIEW_TYPE', () => {
it('should set diff view type properly', () => {
const state = {};