diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-11-24 13:43:00 +0000 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2017-11-24 15:35:10 +0000 |
commit | 0bee018631ae199ce87125c21379e1db2f56bf67 (patch) | |
tree | e2c4aa7cb0cd45c48eae6579112afd1c85eb33ec /spec/javascripts/clusters | |
parent | 5413bf0426917846ed49bfa556ec46dd09a8cd3a (diff) | |
download | gitlab-ce-0bee018631ae199ce87125c21379e1db2f56bf67.tar.gz |
Adds JS to toggle buttons [ci skip]
Diffstat (limited to 'spec/javascripts/clusters')
-rw-r--r-- | spec/javascripts/clusters/clusters_index_spec.js | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/spec/javascripts/clusters/clusters_index_spec.js b/spec/javascripts/clusters/clusters_index_spec.js new file mode 100644 index 00000000000..8798f5c37f0 --- /dev/null +++ b/spec/javascripts/clusters/clusters_index_spec.js @@ -0,0 +1,31 @@ +import ClusterTable from '~/clusters/clusters_index'; + +describe('Clusters table', () => { + let ClustersClass; + + beforeEach(() => { + ClustersClass = new ClusterTable(); + }); + + afterEach(() => { + ClustersClass.removeListeners(); + }); + + describe('update cluster', () => { + it('renders a toggle button', () => { + + }); + + it('renders loading state while request is made', () => { + + }); + + it('shows updated state after sucessfull request', () => { + + }); + + it('shows inital state after failed request', () => { + + }); + }); +}); |