diff --git a/lib/jasmine-core/example/spec/SpecHelper.js b/lib/jasmine-core/example/spec/SpecHelper.js index 415c5438..578b3e86 100644 --- a/lib/jasmine-core/example/spec/SpecHelper.js +++ b/lib/jasmine-core/example/spec/SpecHelper.js @@ -1,15 +1,15 @@ beforeEach(function () { - jasmine.Expectation.addMatchers({ - toBePlaying: function () { - return { - compare: function (actual, expected) { - var player = actual; + jasmine.addMatchers({ + toBePlaying: function () { + return { + compare: function (actual, expected) { + var player = actual; - return { - pass: player.currentlyPlayingSong === expected && player.isPlaying - } - } - }; + return { + pass: player.currentlyPlayingSong === expected && player.isPlaying + } } - }); + }; + } + }); });