{"size": 1873, "ext": "js", "max_stars_repo_path": "test/unit/react-intl.js", "max_stars_repo_name": "clarle/react-intl", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "test/unit/react-intl.js", "max_issues_repo_name": "clarle/react-intl", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "test/unit/react-intl.js", "max_forks_repo_name": "clarle/react-intl", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 31.7457627119, "max_line_length": 73, "alphanum_fraction": 0.4917245061}
import expect from 'expect';
import * as ReactIntl from '../../src/react-intl';

describe('react-intl', () => {
    describe('exports', () => {
        it('exports `addLocaleData`', () => {
            expect(ReactIntl.addLocaleData).toBeA('function');
        });

        it('exports `defineMessages`', () => {
            expect(ReactIntl.defineMessages).toBeA('function');
        });

        it('exports `injectIntl`', () => {
            expect(ReactIntl.defineMessages).toBeA('function');
        });

        describe('React Components', () => {
            it('exports `IntlProvider`', () => {
                expect(ReactIntl.IntlProvider).toBeA('function');
            });

            it('exports `FormattedDate`', () => {
                expect(ReactIntl.FormattedDate).toBeA('function');
            });

            it('exports `FormattedTime`', () => {
                expect(ReactIntl.FormattedTime).toBeA('function');
            });

            it('exports `FormattedRelative`', () => {
                expect(ReactIntl.FormattedRelative).toBeA('function');
            });

            it('exports `FormattedNumber`', () => {
                expect(ReactIntl.FormattedNumber).toBeA('function');
            });

            it('exports `FormattedPlural`', () => {
                expect(ReactIntl.FormattedPlural).toBeA('function');
            });

            it('exports `FormattedMessage`', () => {
                expect(ReactIntl.FormattedMessage).toBeA('function');
            });

            it('exports `FormattedHTMLMessage`', () => {
                expect(ReactIntl.FormattedHTMLMessage).toBeA('function');
            });
        });

        describe('PropTypes Definitions', () => {
            it('exports `intlShape`', () => {
                expect(ReactIntl.intlShape).toBeAn('function');
            });
        });
    });
});
