From b6cb342c6595e086305a0f8efa93c48280f4806e Mon Sep 17 00:00:00 2001 From: Jörn Zaefferer Date: Mon, 13 Oct 2008 21:32:42 +0000 Subject: updating tests to latest QUnit, using same, fixing a few assertions that relied on type casting (mostly null/undefined) --- tests/selectable.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tests/selectable.js') diff --git a/tests/selectable.js b/tests/selectable.js index 267b88931..1d0ea53d4 100644 --- a/tests/selectable.js +++ b/tests/selectable.js @@ -79,10 +79,8 @@ test("defaults", function() { filter: '*' }; $.each(defaults, function(key, val) { - var actual = el.data(key + ".selectable"), expected = val, - method = (expected && expected.constructor == Object) ? - compare2 : equals; - method(actual, expected, key); + var actual = el.data(key + ".selectable"), expected = val; + same(actual, expected, key); }); el.remove(); }); -- cgit v1.2.3