graphiteTargetCtrl-specs.js 643 B

12345678910111213141516171819202122232425262728
  1. define([
  2. 'mocks/dashboard-mock',
  3. 'underscore',
  4. 'services/filterSrv'
  5. ], function(dashboardMock, _) {
  6. describe('graphiteTargetCtrl', function() {
  7. var _filterSrv;
  8. beforeEach(module('kibana.services'));
  9. beforeEach(module(function($provide){
  10. $provide.value('filterSrv',{});
  11. }));
  12. beforeEach(inject(function($controller, $rootScope) {
  13. _targetCtrl = $controller({
  14. $scope: $rootScope.$new()
  15. });
  16. }));
  17. describe('init', function() {
  18. beforeEach(function() {
  19. _filterSrv.add({ name: 'test', current: { value: 'oogle' } });
  20. _filterSrv.init();
  21. });
  22. });
  23. });
  24. });