ctrl-specs.js 569 B

1234567891011121314151617181920212223242526
  1. define([
  2. 'angular',
  3. 'angularMocks',
  4. 'panels/graphite/module'
  5. ], function(angular) {
  6. /* describe('controller', function() {
  7. var scope, metricCtrl;
  8. beforeEach(function() {
  9. angular.mock.inject(function($rootScope, $controller) {
  10. scope = $rootScope.$new();
  11. metricCtrl = $controller('kibana.panels.graphite.graphite', {
  12. $scope: scope
  13. });
  14. });
  15. });
  16. it('should work', function() {
  17. metricCtrl.toggleYAxis({alias:'myAlias'});
  18. scope.panel.aliasYAxis['myAlias'].should.be(2);
  19. });
  20. });*/
  21. });