UNPKG

jasmine-core

Version:

Simple JavaScript testing framework for browsers and node.js

16 lines (14 loc) 322 B
beforeEach(function () { jasmine.addMatchers({ toBePlaying: function () { return { compare: function (actual, expected) { const player = actual; return { pass: player.currentlyPlayingSong === expected && player.isPlaying }; } }; } }); });