diff options
author | Phil Hughes <me@iamphill.com> | 2019-01-24 16:14:14 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2019-01-24 16:14:14 +0000 |
commit | f10d75ecf6eaa568fc46a36a965c1d654a8317ef (patch) | |
tree | 9e90058c4fe05f8564c9093e27dbae14304dfefd /spec/javascripts/diffs | |
parent | a59563a1043dae27790779bd47a01ca509c6b875 (diff) | |
download | gitlab-ce-f10d75ecf6eaa568fc46a36a965c1d654a8317ef.tar.gz |
Fixed diff tree folders being rendered incorrectly
Diffstat (limited to 'spec/javascripts/diffs')
-rw-r--r-- | spec/javascripts/diffs/store/utils_spec.js | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/spec/javascripts/diffs/store/utils_spec.js b/spec/javascripts/diffs/store/utils_spec.js index 3641946518b..c5e413a29d8 100644 --- a/spec/javascripts/diffs/store/utils_spec.js +++ b/spec/javascripts/diffs/store/utils_spec.js @@ -667,6 +667,47 @@ describe('DiffsStoreUtils', () => { }, { type: 'tree', + name: 'ee', + tree: [ + { + type: 'tree', + name: 'lib', + tree: [ + { + type: 'tree', + name: 'ee', + tree: [ + { + type: 'tree', + name: 'gitlab', + tree: [ + { + type: 'tree', + name: 'checks', + tree: [ + { + type: 'tree', + name: 'longtreenametomakepath', + tree: [ + { + type: 'blob', + name: 'diff_check.rb', + tree: [], + }, + ], + }, + ], + }, + ], + }, + ], + }, + ], + }, + ], + }, + { + type: 'tree', name: 'spec', tree: [ { @@ -698,6 +739,17 @@ describe('DiffsStoreUtils', () => { }, { type: 'tree', + name: 'ee/lib/…/…/…/longtreenametomakepath', + tree: [ + { + name: 'diff_check.rb', + tree: [], + type: 'blob', + }, + ], + }, + { + type: 'tree', name: 'spec', tree: [ { |