16 lines
413 B
JavaScript
Executable File
16 lines
413 B
JavaScript
Executable File
beforeEach(function () {
|
|
jasmine.Expectation.addMatchers({
|
|
toBePlaying: function () {
|
|
return {
|
|
compare: function (actual, expected) {
|
|
var player = actual;
|
|
|
|
return {
|
|
pass: player.currentlyPlayingSong === expected && player.isPlaying
|
|
}
|
|
}
|
|
};
|
|
}
|
|
});
|
|
});
|