Quellcode durchsuchen

trying to get more unit tests working

Torkel Ödegaard vor 11 Jahren
Ursprung
Commit
f4568ef589

+ 3 - 0
src/app/panels/graphite/module.js

@@ -19,6 +19,9 @@ define([
   'kbn',
   'moment',
   './timeSeries',
+  'services/filterSrv',
+  'services/annotationsSrv',
+  'services/datasourceSrv',
   'jquery.flot',
   'jquery.flot.events',
   'jquery.flot.selection',

+ 2 - 1
src/test/specs/graph-panel-controller-specs.js

@@ -1,5 +1,5 @@
 /*define([
-  //'services/all'
+  'panels/graphite/module'
 ], function() {
   'use strict';
 
@@ -26,5 +26,6 @@
       });
     });
   });
+
 });
 */

+ 9 - 3
src/test/test-main.js

@@ -26,9 +26,10 @@ require.config({
     crypto:                   '../vendor/crypto.min',
     spectrum:                 '../vendor/spectrum',
 
-    jquery:                '../vendor/jquery/jquery-1.8.0',
+    jquery:                   '../vendor/jquery/jquery-1.8.0',
 
-    bootstrap:             '../vendor/bootstrap/bootstrap',
+    bootstrap:                '../vendor/bootstrap/bootstrap',
+    'bootstrap-tagsinput':    '../vendor/tagsinput/bootstrap-tagsinput',
 
     'jquery-ui':              '../vendor/jquery/jquery-ui-1.10.3',
 
@@ -94,6 +95,9 @@ require.config({
     'bindonce':             ['angular'],
     'angular-strap':        ['angular', 'bootstrap','timepicker', 'datepicker'],
 
+    'bootstrap-tagsinput':          ['jquery'],
+
+
     timepicker:             ['jquery', 'bootstrap'],
     datepicker:             ['jquery', 'bootstrap'],
 
@@ -118,13 +122,15 @@ require([
 
   angular.module('kibana', []);
   angular.module('kibana.services', ['$strap.directives']);
+  angular.module('kibana.panels', []);
+  angular.module('kibana.filters', []);
 
   require([
     'specs/lexer-specs',
     'specs/parser-specs',
     'specs/gfunc-specs',
     'specs/filterSrv-specs',
-    'specs/kbn-format-specs'
+    'specs/kbn-format-specs',
   ], function () {
     window.__karma__.start();
   });