lib/main.js
changed.
Other files ignored by Codecov
.github/.keepalive
is new.
55 | 55 | * @param {number} [options.mu=0] - mean under H0 |
|
56 | 56 | * @throws {TypeError} x argument has to be a typed array or array of numbers |
|
57 | 57 | * @throws {TypeError} sigma argument has to be a positive number |
|
58 | - | * @throws {TypeError} options has to be simple object |
|
58 | + | * @throws {TypeError} options must be an object |
|
59 | 59 | * @throws {TypeError} alpha option has to be a number |
|
60 | 60 | * @throws {RangeError} alpha option has to be a number in the interval `[0,1]` |
|
61 | 61 | * @throws {TypeError} alternative option has to be a string |
111 | 111 | alpha = opts.alpha; |
|
112 | 112 | } |
|
113 | 113 | if ( alpha < 0.0 || alpha > 1.0 ) { |
|
114 | - | throw new RangeError( format( 'invalid argument. `%s` option must be a number on the interval: [0, 1]. Value: `%f`.', 'alpha', alpha ) ); |
|
114 | + | throw new RangeError( format( 'invalid option. `%s` option must be a number on the interval: [0, 1]. Option: `%f`.', 'alpha', alpha ) ); |
|
115 | 115 | } |
|
116 | 116 | if ( len < 2 ) { |
|
117 | 117 | throw new Error( format( 'invalid argument. First argument must contain at least two elements. Value: `%s`.', x ) ); |
142 | 142 | cint[ 1 ] = mu + (cint[ 1 ] * stderr); |
|
143 | 143 | break; |
|
144 | 144 | default: |
|
145 | - | throw new Error( format( 'invalid option. `alternative` must be either `two-sided`, `less`, or `greater`. Option: `%s`.', alt ) ); |
|
145 | + | throw new Error( format( 'invalid option. `%s` option must be one of the following: "%s". Option: `%s`.', 'alternative', [ 'two-sided', 'less', 'greater' ].join( '", "' ), alt ) ); |
|
146 | 146 | } |
|
147 | 147 | out = {}; |
|
148 | 148 | setReadOnly( out, 'rejected', pval <= alpha ); |
Files | Coverage |
---|---|
lib | 100.00% |
Project Totals (4 files) | 100.00% |