lib/main.js
changed.
Other files ignored by Codecov
.github/.keepalive
is new.
53  53  * @param {number} [options.alpha=0.05]  significance level 

54  54  * @param {string} [options.alternative='twosided']  alternative hypothesis (`twosided`, `less` or `greater`) 

55  55  * @param {number} [options.rho=0.0]  correlation under H0 

56    * @throws {TypeError} x argument has to be a typed array or array of numbers 

57    * @throws {TypeError} y argument has to be a typed array or array of numbers 

58    * @throws {Error} x and y must be arrays of the same length 

59    * @throws {Error} x and y must contain at least four elements 

60    * @throws {TypeError} options has to be simple object 

56  +  * @throws {TypeError} first argument has to be a typed array or array of numbers 

57  +  * @throws {TypeError} second argument has to be a typed array or array of numbers 

58  +  * @throws {Error} first and second arguments must be arrays having the same length 

59  +  * @throws {Error} first and second arguments must contain at least four elements 

60  +  * @throws {TypeError} options must be an object 

61  61  * @throws {TypeError} must provide valid options 

62  62  * @returns {Object} test result object 

63  63  * 
92  92  } 

93  93  n = x.length; 

94  94  if ( n !== y.length ) { 

95    throw new Error( 'invalid arguments. Arguments `x` and `y` must be arrays of the same length.' ); 

95  +  throw new Error( 'invalid arguments. First and second arguments must be arrays having the same length.' ); 

96  96  } 

97  97  opts = {}; 

98  98  if ( options ) { 
107  107  alpha = opts.alpha; 

108  108  } 

109  109  if ( n < 4 ) { 

110    throw new Error( 'not enough observations. `x` and `y` must contain at least four observations.' ); 

110  +  throw new Error( 'invalid arguments. Not enough observations. First and second arguments must contain at least four observations.' ); 

111  111  } 

112  112  if ( opts.rho === void 0 ) { 

113  113  rho = 0.0; 
Files  Coverage 

lib  100.00% 
Project Totals (5 files)  100.00% 