diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-05-12 23:02:41 +0100 |
---|---|---|
committer | Z.J. van de Weg <git@zjvandeweg.nl> | 2017-05-22 21:56:12 +0200 |
commit | 4158342b5005a401e30187961e82ad01a9b86782 (patch) | |
tree | 92aec47bfd3e048b799d09aa35cf5b5b1b0bef62 /spec | |
parent | ebede2b3ff1c2b089529c4f9d6268641580e280b (diff) | |
download | gitlab-ce-4158342b5005a401e30187961e82ad01a9b86782.tar.gz |
Adds polling function to environments table
Adds missing eventhub to folder table
Diffstat (limited to 'spec')
-rw-r--r-- | spec/javascripts/environments/environments_store_spec.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/javascripts/environments/environments_store_spec.js b/spec/javascripts/environments/environments_store_spec.js index f617c4bdffe..6e855530b21 100644 --- a/spec/javascripts/environments/environments_store_spec.js +++ b/spec/javascripts/environments/environments_store_spec.js @@ -123,4 +123,13 @@ describe('Store', () => { expect(store.state.paginationInformation).toEqual(expectedResult); }); }); + + describe('getOpenFolders', () => { + it('should return open folder', () => { + store.storeEnvironments(serverData); + + store.toggleFolder(store.state.environments[1]); + expect(store.getOpenFolders()[0]).toEqual(store.state.environments[1]); + }); + }); }); |