mirror of
https://github.com/exane/not-gwent-online
synced 2024-11-23 19:36:53 +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
|
|
};
|
|
}
|
|
};
|
|
}
|
|
});
|
|
});
|