@zohodesk/components
Version:
In this Package, we Provide Some Basic Components to Build Web App
19 lines • 734 B
JavaScript
import React from 'react';
import { render } from '@testing-library/react';
import VelocityAnimationGroup from "../VelocityAnimationGroup";
describe('VelocityAnimationGroup', () => {
test('rendering the defult props', () => {
const {
asFragment
} = render( /*#__PURE__*/React.createElement(VelocityAnimationGroup, null, /*#__PURE__*/React.createElement("div", null, " Test ")));
expect(asFragment()).toMatchSnapshot();
});
test('rendering isActive is true', () => {
const {
asFragment
} = render( /*#__PURE__*/React.createElement(VelocityAnimationGroup, {
isActive: true
}, /*#__PURE__*/React.createElement("div", null, " Test ")));
expect(asFragment()).toMatchSnapshot();
});
});