From 5d919c9556345a8c230dbd3c43b52a0b9f066773 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Tue, 4 Dec 2012 19:34:21 +0100 Subject: Change tests to use AMD loader Test were modified accordingly to AMD changes. https://fedorahosted.org/freeipa/ticket/112 --- install/ui/test/ip_tests.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'install/ui/test/ip_tests.js') diff --git a/install/ui/test/ip_tests.js b/install/ui/test/ip_tests.js index 74fe7c2b..f7564e69 100644 --- a/install/ui/test/ip_tests.js +++ b/install/ui/test/ip_tests.js @@ -18,6 +18,9 @@ * along with this program. If not, see . */ +define(['freeipa/ipa', 'freeipa/net'], function(IPA, NET) { + return function() { + module('ip-addresses',{ setup: function() { }, @@ -300,4 +303,6 @@ test('Usage - set address.parts, no type', function() { address.parse(); ok(!address.valid, 'Still invalid'); same(address.type, null, 'Checking type'); -}); \ No newline at end of file +}); + +};}); \ No newline at end of file -- cgit