From 55ae755522e451c06c51fc37405bbaf1853bccec Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Mon, 14 Mar 2016 15:04:50 -0700 Subject: [PATCH] [Tree] Fix error in test case Correctly expect both arguments to $watch --- platform/commonUI/general/test/directives/MCTTreeSpec.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platform/commonUI/general/test/directives/MCTTreeSpec.js b/platform/commonUI/general/test/directives/MCTTreeSpec.js index e8d57e4ac8..597c4c55b7 100644 --- a/platform/commonUI/general/test/directives/MCTTreeSpec.js +++ b/platform/commonUI/general/test/directives/MCTTreeSpec.js @@ -77,7 +77,10 @@ define([ }); it("watches for changes to mct-object", function () { - expect(mockScope.$watch).toHaveBeenCalledWith("mctObject"); + expect(mockScope.$watch).toHaveBeenCalledWith( + "mctObject", + jasmine.any(Function) + ); }); it("listens for the $destroy event", function () {