summaryrefslogtreecommitdiff
path: root/spec/javascripts/diffs
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2019-01-24 16:14:14 +0000
committerPhil Hughes <me@iamphill.com>2019-01-24 16:14:14 +0000
commitf10d75ecf6eaa568fc46a36a965c1d654a8317ef (patch)
tree9e90058c4fe05f8564c9093e27dbae14304dfefd /spec/javascripts/diffs
parenta59563a1043dae27790779bd47a01ca509c6b875 (diff)
downloadgitlab-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.js52
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: [
{