Files
jasmine/lib/jasmine-core/example/spec/SpecHelper.js
2013-02-26 16:41:46 -08:00

10 lines
223 B
JavaScript

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