summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2017-05-12 23:02:41 +0100
committerZ.J. van de Weg <git@zjvandeweg.nl>2017-05-22 21:56:12 +0200
commit4158342b5005a401e30187961e82ad01a9b86782 (patch)
tree92aec47bfd3e048b799d09aa35cf5b5b1b0bef62 /spec
parentebede2b3ff1c2b089529c4f9d6268641580e280b (diff)
downloadgitlab-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.js9
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]);
+ });
+ });
});