summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Mishunov <dmishunov@gitlab.com>2019-06-25 08:32:14 +0000
committerDenys Mishunov <dmishunov@gitlab.com>2019-06-25 08:32:14 +0000
commit5d563df3b8379511fefdf9002c21bc25e3ccc2ed (patch)
tree043a702cc0207f165956ddebe8bc2f786ee5a074
parenta6508b1f76a9142f37a5b702947c31cdf53299b9 (diff)
downloadgitlab-ce-60860-keep-empty-folders-in-tree.tar.gz
Apply suggestion to spec/javascripts/ide/stores/actions_spec.js60860-keep-empty-folders-in-tree
-rw-r--r--spec/javascripts/ide/stores/actions_spec.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/javascripts/ide/stores/actions_spec.js b/spec/javascripts/ide/stores/actions_spec.js
index 4b3b6cbb309..0ec5f5b1090 100644
--- a/spec/javascripts/ide/stores/actions_spec.js
+++ b/spec/javascripts/ide/stores/actions_spec.js
@@ -505,8 +505,10 @@ describe('Multi-file store actions', () => {
tree: [],
};
testFolder.tree.push(testEntry);
- store.state.entries['testFolder/entry-to-delete'] = testEntry;
- store.state.entries.testFolder = testFolder;
+ store.state.entries = {
+ testFolder,
+ 'testFolder/entry-to-delete': testEntry
+ };
testAction(
deleteEntry,