UNPKG

@teamsnap/teamsnap-ui

Version:

a CSS component library for TeamSnap

17 lines (16 loc) 760 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); var react_1 = __importDefault(require("react")); require("@testing-library/jest-dom"); var react_2 = require("@testing-library/react"); var AttachmentPill_1 = __importDefault(require("./AttachmentPill")); describe('AttachmentPill component', function () { test('should insert children inside Pill component', function () { react_2.render(react_1.default.createElement(AttachmentPill_1.default, null, "Children")); var Pill = react_2.screen.getByTestId('pill'); expect(Pill.textContent).toBe('Children'); }); });