mirror of
https://github.com/exane/not-gwent-online
synced 2024-11-27 03:46:54 +00:00
16 lines
320 B
JavaScript
16 lines
320 B
JavaScript
|
beforeEach(function () {
|
||
|
jasmine.addMatchers({
|
||
|
toBePlaying: function () {
|
||
|
return {
|
||
|
compare: function (actual, expected) {
|
||
|
var player = actual;
|
||
|
|
||
|
return {
|
||
|
pass: player.currentlyPlayingSong === expected && player.isPlaying
|
||
|
};
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
});
|
||
|
});
|