jasmine/example/spec/SpecHelper.js
Lee Byrd & Christian Williams 1057596665 New example project.
Generate jasmine-standalone-x.x.x.zip.
2010-06-24 17:15:06 -07:00

10 lines
223 B
JavaScript

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