UNPKG

@zohodesk/dot

Version:

In this Library, we Provide Some Basic Components to Build Your Application

28 lines (21 loc) 1.02 kB
"use strict"; var _react = _interopRequireDefault(require("react")); var _react2 = require("@testing-library/react"); var _GlobalNotification = _interopRequireDefault(require("../GlobalNotification")); var _constants = require("../utils/constants"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } describe('GlobalNotification', function () { test('rendering the defult props', function () { var _render = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_GlobalNotification["default"], null)), asFragment = _render.asFragment; expect(asFragment()).toMatchSnapshot(); }); }); describe('GlobalNotification Constants', function () { test('should have correct constant values', function () { expect(_constants.STATUS.MOUNTED).toBe('mounted'); expect(_constants.STATUS.UPDATED).toBe('updated'); expect(_constants.STATUS.DISMISSING).toBe('dismissing'); expect(_constants.STATUS.UNMOUNTED).toBe('unmounted'); }); });