You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by ak...@apache.org on 2019/03/05 10:07:47 UTC
[ignite] branch master updated: IGNITE-8420 Web console: Fixed test.
This is an automated email from the ASF dual-hosted git repository.
akuznetsov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git
The following commit(s) were added to refs/heads/master by this push:
new b77fd79 IGNITE-8420 Web console: Fixed test.
b77fd79 is described below
commit b77fd793f370bfa2bfe642382ab656f8c93e9564
Author: Alexander Kalinin <ve...@yandex.ru>
AuthorDate: Tue Mar 5 17:07:25 2019 +0700
IGNITE-8420 Web console: Fixed test.
---
.../web-console/frontend/app/configuration/store/reducer.spec.js | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/modules/web-console/frontend/app/configuration/store/reducer.spec.js b/modules/web-console/frontend/app/configuration/store/reducer.spec.js
index 91952cc..19bf663 100644
--- a/modules/web-console/frontend/app/configuration/store/reducer.spec.js
+++ b/modules/web-console/frontend/app/configuration/store/reducer.spec.js
@@ -57,9 +57,12 @@ suite('page-configure component reducer', () => {
test('REMOVE_CLUSTERS action', () => {
assert.deepEqual(
- reducer({}, {type: REMOVE_CLUSTERS}),
- {},
- 'does nothing yet'
+ reducer(
+ {clusters: new Map([[1, {_id: 1, name: 'Cluster 1'}], [2, {_id: 2, name: 'Cluster 2'}]])},
+ {type: REMOVE_CLUSTERS, clusterIDs: [1]}
+ ),
+ {clusters: new Map([[2, {_id: 2, name: 'Cluster 2'}]])},
+ 'deletes clusters by id'
);
});