@shopgate/pwa-common
Version:
Common library for the Shopgate Connect PWA.
15 lines • 464 B
JavaScript
import React from 'react';
import { shallow } from 'enzyme';
import Ellipsis from "./index";
import { jsx as _jsx } from "react/jsx-runtime";
const clamp = 3;
const text = 'Some very long text that should be cut off by this ellipsis component.';
describe('<Ellipsis />', () => {
it('should render', () => {
const wrapper = shallow(/*#__PURE__*/_jsx(Ellipsis, {
rows: clamp,
children: text
}));
expect(wrapper).toMatchSnapshot();
});
});