Files
iTop/node_modules/c3/htdocs/jasmine/spec/SpecHelper.js
2024-03-04 10:31:26 +01:00

16 lines
319 B
JavaScript

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