diff options
author | Denys Mishunov <dmishunov@gitlab.com> | 2019-06-25 08:32:14 +0000 |
---|---|---|
committer | Denys Mishunov <dmishunov@gitlab.com> | 2019-06-25 08:32:14 +0000 |
commit | 5d563df3b8379511fefdf9002c21bc25e3ccc2ed (patch) | |
tree | 043a702cc0207f165956ddebe8bc2f786ee5a074 | |
parent | a6508b1f76a9142f37a5b702947c31cdf53299b9 (diff) | |
download | gitlab-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.js | 6 |
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, |