aboutsummaryrefslogtreecommitdiff
path: root/engine/js
diff options
context:
space:
mode:
Diffstat (limited to 'engine/js')
-rw-r--r--engine/js/tests/ElggAjaxOptionsTest.js4
-rw-r--r--engine/js/tests/ElggLibTest.js3
-rw-r--r--engine/js/tests/ElggSecurityTest.js4
3 files changed, 8 insertions, 3 deletions
diff --git a/engine/js/tests/ElggAjaxOptionsTest.js b/engine/js/tests/ElggAjaxOptionsTest.js
index 1f6f251de..8a2b7f574 100644
--- a/engine/js/tests/ElggAjaxOptionsTest.js
+++ b/engine/js/tests/ElggAjaxOptionsTest.js
@@ -1,8 +1,10 @@
+/**
+ * Tests elgg.ajax.handleOptions() with all of the possible valid inputs
+ */
ElggAjaxOptionsTest = TestCase("ElggAjaxOptionsTest");
ElggAjaxOptionsTest.prototype.testHandleOptionsAcceptsNoArgs = function() {
assertNotUndefined(elgg.ajax.handleOptions());
-
};
ElggAjaxOptionsTest.prototype.testHandleOptionsAcceptsUrl = function() {
diff --git a/engine/js/tests/ElggLibTest.js b/engine/js/tests/ElggLibTest.js
index 1cd1b139c..d5474c605 100644
--- a/engine/js/tests/ElggLibTest.js
+++ b/engine/js/tests/ElggLibTest.js
@@ -1,3 +1,6 @@
+/**
+ * Test basic elgg library functions
+ */
ElggLibTest = TestCase("ElggLibTest");
ElggLibTest.prototype.testGlobal = function() {
diff --git a/engine/js/tests/ElggSecurityTest.js b/engine/js/tests/ElggSecurityTest.js
index 2b497b869..4324f5671 100644
--- a/engine/js/tests/ElggSecurityTest.js
+++ b/engine/js/tests/ElggSecurityTest.js
@@ -9,8 +9,8 @@ ElggSecurityTest.prototype.setUp = function() {
ElggSecurityTest.prototype.testAddTokenAcceptsUndefined = function() {
var input,
expected = {
- __elgg_ts: this.ts,
- __elgg_token: this.token
+ __elgg_ts: this.ts,
+ __elgg_token: this.token
};
assertEquals(expected, elgg.security.addToken(input));