Repository: ambari Updated Branches: refs/heads/trunk 72893f843 -> e7a27983b
AMBARI-18771 Fix UI unit tests. (ababiichuk) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/e7a27983 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/e7a27983 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/e7a27983 Branch: refs/heads/trunk Commit: e7a27983b3c1365b72846cc2a26dda75aed34762 Parents: 72893f8 Author: ababiichuk <[email protected]> Authored: Wed Nov 2 12:49:58 2016 +0200 Committer: ababiichuk <[email protected]> Committed: Wed Nov 2 12:49:58 2016 +0200 ---------------------------------------------------------------------- ambari-web/test/views/wizard/step3_view_test.js | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/e7a27983/ambari-web/test/views/wizard/step3_view_test.js ---------------------------------------------------------------------- diff --git a/ambari-web/test/views/wizard/step3_view_test.js b/ambari-web/test/views/wizard/step3_view_test.js index a5ce44f..46ed1d3 100644 --- a/ambari-web/test/views/wizard/step3_view_test.js +++ b/ambari-web/test/views/wizard/step3_view_test.js @@ -477,9 +477,13 @@ describe('App.WizardStep3View', function () { }) }); sinon.spy(v.get('controller'), 'loadStep'); + sinon.stub(v, '$').returns({ + on: Em.K + }); }); afterEach(function() { v.get('controller').loadStep.restore(); + v.$.restore(); }); it('should call loadStep', function() { v.didInsertElement();
