summaryrefslogtreecommitdiff
path: root/spec/javascripts/notes/helpers.js
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2018-02-09 17:07:20 +0000
committerFilipa Lacerda <filipa@gitlab.com>2018-02-09 18:56:41 +0000
commitd637f87f88b40704291d7a01032af09853afb4e4 (patch)
tree40becbcd8457096386ec19621ee0010847cb26d6 /spec/javascripts/notes/helpers.js
parenta4a47cfba87a618698eab36bd7b6427f4f27d0de (diff)
downloadgitlab-ce-d637f87f88b40704291d7a01032af09853afb4e4.tar.gz
Makes close/reopen issue request to inside the vue app
Diffstat (limited to 'spec/javascripts/notes/helpers.js')
-rw-r--r--spec/javascripts/notes/helpers.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/javascripts/notes/helpers.js b/spec/javascripts/notes/helpers.js
new file mode 100644
index 00000000000..a7663710a56
--- /dev/null
+++ b/spec/javascripts/notes/helpers.js
@@ -0,0 +1,12 @@
+// eslint-disable-next-line import/prefer-default-export
+export const resetStore = (store) => {
+ store.replaceState({
+ notes: [],
+ targetNoteHash: null,
+ lastFetchedAt: null,
+
+ notesData: {},
+ userData: {},
+ noteableData: {},
+ });
+};