react-carousel-query
Version:
A infinite carousel component made with react that handles the pagination for you.
19 lines (13 loc) • 445 B
JavaScript
var test = require('tape');
var description = require('../');
var runTests = require('./tests');
test('as a function', function (t) {
t.test('bad array/this value', function (st) {
st['throws'](function () { description(undefined); }, TypeError, 'undefined is not an object');
st['throws'](function () { description(null); }, TypeError, 'null is not an object');
st.end();
});
runTests(description, t);
t.end();
});
;