UNPKG
imageflip
Version:
latest (1.0.4)
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
imageflip - a minimal slideshow library
github.com/erf/imageflip
erf/imageflip
imageflip
/
test
/
imageflip-test.js
15 lines
(13 loc)
•
366 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
var
imageflip =
require
(
'../index'
);
describe
(
'imageflip'
,
function
(
){
it
(
'should call callback'
,
function
(
done
){
var
counter =
0
;
imageflip
({}, [
'0'
,
'1'
,
'2'
],
5
,
function
(
i
){
//console.log(i);
counter +=
1
;
if
(i===
0
&& counter===
3
){
done
(); } }).
start
(); }); });