UNPKG
@hamgom95/bikecalc
Version:
latest (7.1.1)
7.1.1
7.1.0
7.0.0
6.0.0
5.0.0
4.0.0
3.0.0
2.0.0
bicycle gearing, power and aerodynamics calculator
@hamgom95/bikecalc
/
src
/
helpers.spec.js
14 lines
(10 loc)
•
282 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import
{expect}
from
"chai"
;
import
{reduce, gcd}
from
"./helpers"
;
describe
(
'helpers'
,
function
(
) {
it
(
'gcd()'
,
function
(
) {
expect
(
gcd
(
2
,
4
)).
to
.
equal
(
2
); });
it
(
'reduce()'
,
function
(
) {
expect
(
reduce
(
2
,
4
)).
to
.
eql
([
1
,
2
]); }); });