Skip to content

Commit 56ad1d8

Browse files
committed
GG-19634 Web Console: Removed not needed test('saveCluster').
1 parent 56ca854 commit 56ad1d8

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

modules/web-console/frontend/app/configuration/services/Clusters.spec.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,6 @@ suite('Clusters service', () => {
3838
assert.isNumber(s.minMemoryPolicySize, 'has minMemoryPolicySize number');
3939
});
4040

41-
test('saveCluster', () => {
42-
const s = new Provider(...mocks().values());
43-
const cluster = {id: 1, name: 'Test'};
44-
s.saveCluster(cluster);
45-
assert.isOk(s.$http.post.called, 'calls $http.post');
46-
assert.equal(s.$http.post.lastCall.args[0], '/api/v1/configuration/clusters/save', 'uses correct API URL');
47-
assert.deepEqual(s.$http.post.lastCall.args[1], cluster, 'sends cluster');
48-
});
49-
5041
test('getBlankCluster', () => {
5142
const s = new Provider(...mocks().values());
5243
assert.isObject(s.getBlankCluster());

0 commit comments

Comments
 (0)