mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-26 21:54:13 +01:00
16 lines
319 B
JavaScript
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
|
|
}
|
|
}
|
|
};
|
|
}
|
|
});
|
|
});
|