diff options
author | Phil Hughes <me@iamphill.com> | 2017-10-13 16:01:54 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-10-16 11:29:30 +0100 |
commit | 5f80d04271a15c3065513e6417891f3949c7a530 (patch) | |
tree | 0a8a0cb418c93a6817cec8b04255c6d0f7f25d8d /spec/javascripts/repo/components/repo_file_buttons_spec.js | |
parent | b1b91aa0658d81107327884ca56f579cf6146078 (diff) | |
download | gitlab-ce-5f80d04271a15c3065513e6417891f3949c7a530.tar.gz |
Spec updates
Updated as best as possible, a lot of tests still change the store
and never reset the state back which can cause some issues with other
tests.
Diffstat (limited to 'spec/javascripts/repo/components/repo_file_buttons_spec.js')
-rw-r--r-- | spec/javascripts/repo/components/repo_file_buttons_spec.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/javascripts/repo/components/repo_file_buttons_spec.js b/spec/javascripts/repo/components/repo_file_buttons_spec.js index dfab51710c3..701c260224f 100644 --- a/spec/javascripts/repo/components/repo_file_buttons_spec.js +++ b/spec/javascripts/repo/components/repo_file_buttons_spec.js @@ -9,6 +9,10 @@ describe('RepoFileButtons', () => { return new RepoFileButtons().$mount(); } + afterEach(() => { + RepoStore.openedFiles = []; + }); + it('renders Raw, Blame, History, Permalink and Preview toggle', () => { const activeFile = { extension: 'md', |