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
/
objects.spec.js
18 lines
(15 loc)
•
282 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
(
'object as a value'
,
t
=>
{ t.
plan
(
1
);
new
Between
( {
a
:
2
},
// from
{
a
:
10
}
// to
) .
time
(
1000
) .
on
(
'complete'
,
v
=>
{ t.
is
(v.
a
,
10
); t.
end
(); }); });