UNPKG
iterizerjs
Version:
latest (0.1.0)
0.1.0
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
0.0.0
Expressive & concise code using ES6 iterables
github.com/dchambers/IterizerJs
dchambers/IterizerJs
iterizerjs
/
spec
/
test
/
sum.js
9 lines
(6 loc)
•
176 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
var
should =
require
(
'chai'
).
should
();
describe
(
'sum()'
,
function
(
) {
it
(
'can return the sum of a number of items'
,
function
(
) {
range
(
4
).
sum
().
should
.
equal
(
10
); }); });