mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-09-03 20:52:56 -05:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user