"use strict";

var _react = _interopRequireDefault(require("react"));

var _enzyme = require("enzyme");

var _index = require("../index.js");

var _index2 = require("../../toast/index.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/*
Copyright (c) 2018 Uber Technologies, Inc.

This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
*/
jest.useFakeTimers();
describe('Toast', function () {
  test('basic inline rendering', function () {
    var wrapper = (0, _enzyme.mount)(_react.default.createElement(_index.Notification, null, "Notification"));
    expect(wrapper.find(_index2.Toast).first()).toExist();
    expect(wrapper.find(_index2.StyledBody).first()).toExist();
    expect(wrapper.find(_index2.StyledCloseIcon).first()).not.toExist();
  });
});