@zohodesk/dot
Version:
In this Library, we Provide Some Basic Components to Build Your Application
20 lines • 719 B
JavaScript
import React from 'react';
import { render } from '@testing-library/react';
import GlobalNotification from "../GlobalNotification";
import { STATUS } from "../utils/constants";
describe('GlobalNotification', () => {
test('rendering the defult props', () => {
const {
asFragment
} = render( /*#__PURE__*/React.createElement(GlobalNotification, null));
expect(asFragment()).toMatchSnapshot();
});
});
describe('GlobalNotification Constants', () => {
test('should have correct constant values', () => {
expect(STATUS.MOUNTED).toBe('mounted');
expect(STATUS.UPDATED).toBe('updated');
expect(STATUS.DISMISSING).toBe('dismissing');
expect(STATUS.UNMOUNTED).toBe('unmounted');
});
});