summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-07-22 13:48:31 -0500
committerEndi S. Dewata <edewata@redhat.com>2011-07-22 18:55:39 +0000
commit28b9288c51e47afe7f7e9821f74db4b62deee551 (patch)
treeeb858138f14b36ce9aa91ac6d15878c0094af172 /install
parent740bacdfb9b7258a21669873efbd7639aebbdd71 (diff)
downloadfreeipa-28b9288c51e47afe7f7e9821f74db4b62deee551.zip
freeipa-28b9288c51e47afe7f7e9821f74db4b62deee551.tar.gz
freeipa-28b9288c51e47afe7f7e9821f74db4b62deee551.tar.xz
Fixed navigation unit test.
The mock-up get_state() has been modified to return an empty object if it's called without parameter. It's the same as $bbq.getState().
Diffstat (limited to 'install')
-rw-r--r--install/ui/test/navigation_tests.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/install/ui/test/navigation_tests.js b/install/ui/test/navigation_tests.js
index 94d0e02..80d4353 100644
--- a/install/ui/test/navigation_tests.js
+++ b/install/ui/test/navigation_tests.js
@@ -131,7 +131,7 @@ test("Testing IPA.navigation.update() with valid index.", function() {
};
navigation.get_state = function(key) {
- return state[key];
+ return key ? state[key] : {};
};
navigation.remove_state = function(key) {
@@ -183,7 +183,7 @@ test("Testing IPA.navigation.update() with out-of-range index.", function() {
};
navigation.get_state = function(key) {
- return state[key];
+ return key ? state[key] : {};
};
navigation.remove_state = function(key) {