text: "use strict";var _react=_interopRequireDefault(require("react")),_expect=_interopRequireDefault(require("expect")),_proxyquire=_interopRequireDefault(require("proxyquire")),_containerSetup=_interopRequireDefault(require("../../util/specHelpers/containerSetup.spec")),_constants=require("../../util/constants");function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}_proxyquire["default"].noCallThru();var id="TestPlayer",mockPlaylistItem=function(){return _react["default"].createElement("li",null)},PlaylistItemContainer=(0,_proxyquire["default"])("./playlistItemContainer",{"./playlistItem":mockPlaylistItem})["default"],setup=function(a,b,c){return(0,_containerSetup["default"])(PlaylistItemContainer,a,b,c)};describe("PlaylistItemContainer",function(){var a,b;beforeEach(function(){a=_defineProperty({},id,{}),b=_defineProperty({},id,{})}),describe("className",function(){it("does not contain jp-current when not current playlistItem",function(){var c=setup(b,a,{index:1}),d=c.wrapper,e=d.find(mockPlaylistItem);(0,_expect["default"])(e.prop("className")).toNotContain(_constants.classes.CURRENT)}),it("contains jp-current when current playlistItem",function(){b[id].current=1;var c=setup(b,a,{index:1}),d=c.wrapper,e=d.find(mockPlaylistItem);(0,_expect["default"])(e.prop("className")).toContain(_constants.classes.CURRENT)})})});