ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From atk...@apache.org
Subject [1/2] ambari git commit: AMBARI-13715 Refactor Quick Links View. (atkach)
Date Wed, 04 Nov 2015 17:44:50 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 4b0b1041c -> e97b32164


http://git-wip-us.apache.org/repos/asf/ambari/blob/e97b3216/ambari-web/test/views/main/admin_test.js
----------------------------------------------------------------------
diff --git a/ambari-web/test/views/main/admin_test.js b/ambari-web/test/views/main/admin_test.js
index a62ff2d..928480f 100644
--- a/ambari-web/test/views/main/admin_test.js
+++ b/ambari-web/test/views/main/admin_test.js
@@ -25,7 +25,9 @@ describe('App.MainAdminView', function () {
   var view;
 
   beforeEach(function () {
-    view = App.MainAdminView.create();
+    view = App.MainAdminView.create({
+      controller: Em.Object.create()
+    });
   });
 
   describe('#categories', function () {
@@ -81,7 +83,13 @@ describe('App.MainAdminView', function () {
         expect(view.get('categories')).to.eql(item.categories);
       });
     });
+  });
 
+  describe("#willDestroyElement()", function() {
+    it("", function() {
+      view.willDestroyElement();
+      expect(view.get('controller.category')).to.be.null;
+    });
   });
 
 });
\ No newline at end of file


Mime
View raw message