Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Whitespace cleanup

  • Loading branch information...
commit 859339b9b573b08f39b1a3c21644d91fd796e40c 1 parent e55e63b
@JamesMGreene authored
Showing with 30 additions and 30 deletions.
  1. +30 −30 qunit-assert-close.js
View
60 qunit-assert-close.js
@@ -1,32 +1,32 @@
-QUnit.extend( QUnit.assert, {
- /**
- * Checks that the first two arguments are equal, or are numbers close enough to be considered equal
- * based on a specified maximum allowable difference.
- *
- * @example assert.close(3.141, Math.PI, 0.001);
- *
- * @param Number actual
- * @param Number expected
- * @param Number maxDifference (the maximum inclusive difference allowed between the actual and expected numbers)
- * @param String message (optional)
- */
- close: function(actual, expected, maxDifference, message) {
- var passes = (actual === expected) || Math.abs(actual - expected) <= maxDifference;
- QUnit.push(passes, actual, expected, message);
- },
+QUnit.extend(QUnit.assert, {
+ /**
+ * Checks that the first two arguments are equal, or are numbers close enough to be considered equal
+ * based on a specified maximum allowable difference.
+ *
+ * @example assert.close(3.141, Math.PI, 0.001);
+ *
+ * @param Number actual
+ * @param Number expected
+ * @param Number maxDifference (the maximum inclusive difference allowed between the actual and expected numbers)
+ * @param String message (optional)
+ */
+ close: function(actual, expected, maxDifference, message) {
+ var passes = (actual === expected) || Math.abs(actual - expected) <= maxDifference;
+ QUnit.push(passes, actual, expected, message);
+ },
- /**
- * Checks that the first two arguments are numbers with differences greater than the specified
- * minimum difference.
- *
- * @example assert.notClose(3.1, Math.PI, 0.001);
- *
- * @param Number actual
- * @param Number expected
- * @param Number minDifference (the minimum exclusive difference allowed between the actual and expected numbers)
- * @param String message (optional)
- */
- notClose: function(actual, expected, minDifference, message) {
- QUnit.push(Math.abs(actual - expected) > minDifference, actual, expected, message);
- }
+ /**
+ * Checks that the first two arguments are numbers with differences greater than the specified
+ * minimum difference.
+ *
+ * @example assert.notClose(3.1, Math.PI, 0.001);
+ *
+ * @param Number actual
+ * @param Number expected
+ * @param Number minDifference (the minimum exclusive difference allowed between the actual and expected numbers)
+ * @param String message (optional)
+ */
+ notClose: function(actual, expected, minDifference, message) {
+ QUnit.push(Math.abs(actual - expected) > minDifference, actual, expected, message);
+ }
});
Please sign in to comment.
Something went wrong with that request. Please try again.