grunt-contrib-jasmine/test/fixtures/pivotal/spec/SpecHelper.js

16 lines
413 B
JavaScript
Raw Normal View History

2013-11-21 08:46:27 +08:00
beforeEach(function () {
jasmine.Expectation.addMatchers({
toBePlaying: function () {
return {
compare: function (actual, expected) {
var player = actual;
return {
pass: player.currentlyPlayingSong === expected && player.isPlaying
}
}
};
}
});
});