UNPKG
between.js
Version:
latest (0.1.2-fix.2)
0.1.2
0.1.2-fix.2
0.1.1
0.1.0
0.0.1-alpha.1
Lightweight ES6 JavaScript tweening engine
github.com/sasha240100/between.js
sasha240100/between.js
between.js
/
test
/
arrays.spec.js
18 lines
(15 loc)
•
289 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import
'./polyfill'
;
import
test
from
'ava'
;
import
Between
from
'../src/between'
; test.
cb
(
'array as a value'
,
t
=>
{ t.
plan
(
1
);
new
Between
( [
1
,
2
],
// from
[
3
,
4
]
// to
) .
time
(
1000
) .
on
(
'complete'
,
v
=>
{ t.
deepEqual
(v, [
3
,
4
]); t.
end
(); }); });