diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2018-02-09 17:07:20 +0000 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2018-02-09 18:56:41 +0000 |
commit | d637f87f88b40704291d7a01032af09853afb4e4 (patch) | |
tree | 40becbcd8457096386ec19621ee0010847cb26d6 /spec/javascripts/notes/helpers.js | |
parent | a4a47cfba87a618698eab36bd7b6427f4f27d0de (diff) | |
download | gitlab-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.js | 12 |
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: {}, + }); +}; |