From a2debf60b6cd662fa14f93c0699b990266b4c3a4 Mon Sep 17 00:00:00 2001 From: Rajan Agaskar and Sheel Choksi Date: Tue, 29 Oct 2013 18:35:17 -0700 Subject: [PATCH] Use jasmine.addMatchers instead of reaching through jasmine.Expectation [finishes #59518946] --- lib/jasmine-core/example/spec/SpecHelper.js | 22 ++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) 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 + } } - }); + }; + } + }); });