react-tags/react-tags

View on GitHub
__tests__/__snapshots__/SingleTag.test.tsx.snap

Summary

Maintainability
Test Coverage
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Tag shows the classnames of children properly 1`] = `
<div>
  <span
    class="tag-wrapper tag action"
    data-testid="tag"
    draggable="true"
    style="opacity: 1; cursor: move;"
  >
    FooBar
    <button
      aria-label="Tag at index 0 with value 1 focussed. Press backspace to remove"
      class="remove"
      data-testid="remove"
      type="button"
    >
      <svg
        fill="#fff"
        height="12"
        viewBox="0 0 512 512"
        width="12"
        xmlns="http://www.w3.org/2000/svg"
      >
        <path
          d="M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5C45.3 29.9 25.1 28.1 11.5 39.4S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306 327.4 468.5c11.3 13.6 31.5 15.4 45.1 4.1s15.4-31.5 4.1-45.1L233.7 256 376.6 84.5z"
        />
      </svg>
    </button>
  </span>
</div>
`;