Files
shiny/inst/tests-js/spec/SpecHelper.js
2013-03-29 14:30:22 -05:00

10 lines
228 B
JavaScript

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