SpecHelper.js 228 B

123456789
  1. beforeEach(function() {
  2. this.addMatchers({
  3. toBePlaying: function(expectedSong) {
  4. var player = this.actual;
  5. return player.currentlyPlayingSong === expectedSong &&
  6. player.isPlaying;
  7. }
  8. });
  9. });