diff options
Diffstat (limited to 'js/tests')
-rw-r--r-- | js/tests/ElggAjaxOptionsTest.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/js/tests/ElggAjaxOptionsTest.js b/js/tests/ElggAjaxOptionsTest.js index 8a2b7f574..0b1b7e6d7 100644 --- a/js/tests/ElggAjaxOptionsTest.js +++ b/js/tests/ElggAjaxOptionsTest.js @@ -45,11 +45,10 @@ ElggAjaxOptionsTest.prototype.testHandleOptionsAcceptsUrlThenDataOnly = function ElggAjaxOptionsTest.prototype.testHandleOptionsAcceptsUrlThenSuccessOnly = function() {
var url = 'url',
- success = function() {},
- result = elgg.ajax.handleOptions(url, success);
+ result = elgg.ajax.handleOptions(url, elgg.nullFunction);
assertEquals(url, result.url);
- assertEquals(success, result.success);
+ assertEquals(elgg.nullFunction, result.success);
};
ElggAjaxOptionsTest.prototype.testHandleOptionsAcceptsUrlThenOptions = function() {
|