summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,