UNPKG

451 BJavaScriptView Raw
1import { expect } from 'chai';
2
3import * as index from '../index';
4
5const EXPORTS = [
6 'Draggable',
7 'Holdable',
8 'Swipeable',
9 'CustomGesture',
10 'defineHold',
11 'defineSwipe',
12 'moves',
13];
14
15describe("index.js", () => {
16 it("should have the correct exports", () => {
17 expect(index).to.have.all.keys(EXPORTS);
18 });
19
20 it("should not have any extra exports", () => {
21 expect(Object.keys(index)).to.have.lengthOf(EXPORTS.length);
22 });
23});