summaryrefslogtreecommitdiffstats
path: root/install/ui/test/entity_tests.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/ui/test/entity_tests.js')
-rw-r--r--install/ui/test/entity_tests.js15
1 files changed, 12 insertions, 3 deletions
diff --git a/install/ui/test/entity_tests.js b/install/ui/test/entity_tests.js
index 26d73090..c9b7a104 100644
--- a/install/ui/test/entity_tests.js
+++ b/install/ui/test/entity_tests.js
@@ -19,8 +19,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-define(['freeipa/ipa', 'freeipa/jquery', 'freeipa/entity', 'freeipa/search',
- 'freeipa/details'], function(IPA, $) {
+define(['freeipa/ipa', 'freeipa/jquery','freeipa/facet', 'freeipa/facets',
+ 'freeipa/entity', 'freeipa/search',
+ 'freeipa/details'], function(IPA, $, mod_facet, facets) {
return function() {
var container;
@@ -30,6 +31,14 @@ module('entity',{
IPA.ajax_options.async = false;
+ facets.register({
+ type: 'search',
+ factory: IPA.search_facet,
+ pre_ops: [
+ mod_facet.facet_preops.search
+ ]
+ });
+
IPA.init({
url: 'data',
on_success: function(data, text_status, xhr) {
@@ -59,7 +68,7 @@ module('entity',{
},
teardown: function() {
container.remove();
-
+ facets.remove('search');
}
});