diff options
Diffstat (limited to 'install/ui/test/navigation_tests.js')
-rw-r--r-- | install/ui/test/navigation_tests.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/install/ui/test/navigation_tests.js b/install/ui/test/navigation_tests.js index 916259b4..9db0bb1c 100644 --- a/install/ui/test/navigation_tests.js +++ b/install/ui/test/navigation_tests.js @@ -31,7 +31,7 @@ test("Testing nav_create().", function() { var entity; - IPA.register_entity( function() { + IPA.entity_factories.user = function() { var that = IPA.entity({name: 'user'}); that.setup = function(container){ user_mock_called = true; @@ -39,10 +39,8 @@ test("Testing nav_create().", function() { same(container[0].nodeName,'DIV','user div'); } return that; - }); - - IPA.register_entity( function(){ - + }; + IPA.entity_factories.group = function(){ var that = IPA.entity({name: 'group'}); that.setup = function(container){ group_mock_called = true; @@ -50,7 +48,7 @@ test("Testing nav_create().", function() { same(container[0].nodeName,'DIV','group Div'); }; return that; - }); + }; IPA.start_entities(); |