{"size": 1928, "ext": "js", "max_stars_repo_path": "test/components/Search-test.js", "max_stars_repo_name": "tlwu2013/grommet", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "test/components/Search-test.js", "max_issues_repo_name": "tlwu2013/grommet", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "test/components/Search-test.js", "max_forks_repo_name": "tlwu2013/grommet", "max_forks_repo_forks_event_min_datetime": "2019-11-25T09:41:57.000Z", "max_forks_repo_forks_event_max_datetime": "2019-11-25T09:41:57.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 37.8039215686, "max_line_length": 75, "alphanum_fraction": 0.7406639004}
// (C) Copyright 2014-2015 Hewlett-Packard Development Company, L.P.

var path = require('path');
var __path__ = path.join(__dirname, '../../src/js/components/Search');

var GrommetTestUtils = require('../../src/utils/test/GrommetTestUtils');

describe('Grommet Search', function() {
  it('loads a basic Search', function() {
    var Component = GrommetTestUtils.getComponent(__path__, undefined);

    GrommetTestUtils.componentShouldExist(Component, 'search');
    GrommetTestUtils.componentShouldExist(Component, 'search--controlled');
    GrommetTestUtils.componentShouldExist(Component, 'search__control');
  });

  it('loads a custom class Search', function() {
    var Component = GrommetTestUtils.getComponent(__path__, undefined, {
      className: 'test'
    });

    GrommetTestUtils.componentShouldExist(Component, 'search');
    GrommetTestUtils.componentShouldExist(Component, 'search--controlled');
    GrommetTestUtils.componentShouldExist(Component, 'search__control');
    GrommetTestUtils.componentShouldExist(Component, 'test');
  });

  it('loads a large Search', function() {
    var Component = GrommetTestUtils.getComponent(__path__, undefined, {
      large: true
    });

    GrommetTestUtils.componentShouldExist(Component, 'search');
    GrommetTestUtils.componentShouldExist(Component, 'search--controlled');
    GrommetTestUtils.componentShouldExist(Component, 'search__control');
    GrommetTestUtils.componentShouldExist(Component, 'search--large');
  });

  it('loads an inline Search', function() {
    var Component = GrommetTestUtils.getComponent(__path__, undefined, {
      inline: true
    });

    GrommetTestUtils.componentShouldExist(Component, 'search');
    GrommetTestUtils.componentShouldExist(Component, 'search--inline');
    GrommetTestUtils.componentShouldNotExist(Component, 'search__control');
    GrommetTestUtils.componentShouldExist(Component, 'search__input');
  });

});
