Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update repo structure. #13

Merged
merged 1 commit into from
Jun 10, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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