Skip to content

Commit

Permalink
chore: update repo structure (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
wtgtybhertgeghgtwtg authored Jun 10, 2018
1 parent 53b4798 commit 46bee61
Show file tree
Hide file tree
Showing 5 changed files with 387 additions and 38 deletions.
5 changes: 4 additions & 1 deletion __tests__/getCertain.test.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
// flow
// @flow
import getCertain from '../src';

describe('getCertain', () => {
describe('invariants', () => {
it('throws if "map" is undefined.', () => {
// $FlowFixMe
expect(() => getCertain()).toThrow('"map" must be a Map.');
});
it('throws if "map" is not a Map-like object.', () => {
// $FlowFixMe
expect(() => getCertain({has: 3})).toThrow('"map" must be a Map.');
});
it('throws if "message" is not a string or undefined.', () => {
// $FlowFixMe
expect(() => getCertain(new Map(), 1, 1)).toThrow(
'"message" must be a string or undefined.',
);
Expand Down
Loading

0 comments on commit 46bee61

Please # to comment.