content: import 'jsdom-global/register';
  import assert from 'assert';
  import { mount } from 'enzyme';
  import React from 'react';
  import TagsInput from '../src/TagsInput';
  
  describe("TagsInput", function() {
  
    it("basic usage should work", function() {
      const view = mount(<TagsInput />);
      const input = view.find('input');
      input.simulate('change', { target: { value: 'foo' } });
      assert.equal(input.getNode().value, 'foo');
      input.simulate('keypress', { key: 'Enter'} );
      assert.equal(input.getNode().value, '');
      const tags = view.find('.sit-tags');
      assert.equal(tags.children().length, 1);
      assert.equal(tags.children().first().find('.sit-tag').getNode().innerHTML, 'foo');
    })
  
    it("should render initial values", function() {
      const view = mount(<TagsInput tags={ ['foo', 'bar', 'baz'] } />);
      assert.equal(view.find('.sit-tags').children().length, 3);
    })
  
    it("should render input attrs", function() {
      const view = mount(<TagsInput name="foo" id="bar" />);
      const input = view.find('input').getNode();
      assert.equal(input.name, 'foo');
      assert.equal(input.id, 'bar');
    })
  
  })