SpecHelper.js 223 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 beforeEach(function() { this.addMatchers({ toBePlaying: function(expectedSong) { var player = this.actual; return player.currentlyPlayingSong === expectedSong && player.isPlaying; } }) });