Add a first pass at jsdoc.

[##130415655] #596
This commit is contained in:
Gregg Van Hove
2017-03-21 11:36:41 -07:00
parent a37b6c0d32
commit 9cb2f06aa6
30 changed files with 553 additions and 9 deletions
+9 -1
View File
@@ -1,5 +1,13 @@
getJasmineRequireObj().toBeCloseTo = function() {
/**
* {@link expect} the actual value to be within a specified precision of the expected value.
* @function
* @name matchers#toBeCloseTo
* @param {Object} expected - The expected value to compare against.
* @param {Number} [precision=2] - The number of decimal points to check.
* @example
* expect(number).toBeCloseTo(42.2, 3);
*/
function toBeCloseTo() {
return {
compare: function(actual, expected, precision) {