Skip to content

Commit

Permalink
test(index): add tests for index
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Hamilton committed Dec 5, 2018
1 parent 112794b commit 790a21a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/index.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import * as o from '../src/index';

describe('index', () => {
test('should return 24 functions', () => {
expect(Object.keys(o).length).toBe(25);
});

test('all functions are typeof function', () => {
const reducer = (last, current) => last && typeof current === 'function';
expect(Object.values(o).reduce(reducer)).toBe(true);
});
});

0 comments on commit 790a21a

Please # to comment.