grunt-contrib-jasmine/test/fixtures/pivotal/spec/SpecHelper.js
2012-11-07 10:56:19 -08:00

10 lines
228 B
JavaScript

beforeEach(function() {
this.addMatchers({
toBePlaying: function(expectedSong) {
var player = this.actual;
return player.currentlyPlayingSong === expectedSong &&
player.isPlaying;
}
});
});