silverstripe-framework/thirdparty/jasmine/example/spec/SpecHelper.js

10 lines
223 B
JavaScript
Raw Normal View History

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