Permalink
Browse files

dj

  • Loading branch information...
1 parent 48187ba commit fb72ed6dd7a2559b20cd0181767fc8f87961cc5e DalSoft committed Sep 24, 2011
Showing with 13 additions and 3 deletions.
  1. +13 −3 JsHarness/scripts-test/jquery.http.js
@@ -5,9 +5,19 @@
test("ajaxSetup dataType should equal dataType jsonp", function () {
equal($.ajaxSetup().dataType, 'jsonX');
- });
-
-
+ });
+
+ asyncTest("Given a vaild Api resource when ", function () {
+ jg.http.get({
+ url: "https://api.justgiving.com/ea902521/v1/fundraising/pages/justgiving",
+ overrideCallback: function (data) {
+ equal(data.pageId, '123');
+ start();
+ }
+ });
+
+ });
+
asyncTest("Api result should be return when given a vaild Api resource", function() {
jg.http.get({
url: "https://api.justgiving.com/ea902521/v1/fundraising/pages/justgiving",

0 comments on commit fb72ed6

Please sign in to comment.