diff options
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', () => { + + }); + }); +}); |