1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
beforeEach(function () { jasmine.addMatchers({ toBePlaying: function () { return { compare: function (actual, expected) { var player = actual; return { pass: player.currentlyPlayingSong === expected && player.isPlaying } } }; } }); });