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().
This commit is contained in:
Endi S. Dewata
2011-07-22 18:55:39 +00:00
parent 740bacdfb9
commit 28b9288c51
+2 -2
View File
@@ -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) {