Files
jasmine/lib/jasmine-core/example/spec/SpecHelper.js
Greg Cobb and JR Boyens 0daae4d7b4 Update examples for 2.0
2013-07-16 10:00:16 -07:00

16 lines
413 B
JavaScript

beforeEach(function () {
jasmine.Expectation.addMatchers({
toBePlaying: function () {
return {
compare: function (actual, expected) {
var player = actual;
return {
pass: player.currentlyPlayingSong === expected && player.isPlaying
}
}
};
}
});
});