"use strict";

var _makeAnimations = _interopRequireDefault(require("./makeAnimations"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
var match = function match(css, value) {
  return expect(css.filter(function (e) {
    return typeof e === "string";
  }).join("").trim()).toBe(value);
};
it("Creates animation rules based on the transition", function () {
  var animation = (0, _makeAnimations["default"])({
    toggle: "height: 200px;"
  });
  var value = "animation: 200ms ;";
  match(animation.entering, value);
  match(animation.exiting, value);
});
it("Creates animation rules based on the transition", function () {
  var animation = (0, _makeAnimations["default"])({
    toggle: "height: 200px;",
    timing: "easy-in",
    speed: 250,
    transformOrigin: "top"
  });
  var value = "transform-origin: top; animation: 250ms easy-in;";
  match(animation.entering, value);
  match(animation.exiting, value);
});