Code coverage report for src/module.js

Statements: 72.73% (8 / 11)      Branches: 100% (0 / 0)      Functions: 100% (0 / 0)      Lines: 72.73% (8 / 11)      Ignored: none     

All files » src/ » module.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24      1 1   1       1   1       1   1       1  
// Deps is sort of a problem for us, maybe in the future we will ask the user to depend
// on modules for add-ons
 
var deps = [];
try {
  //This throws an expection if module does not exist.
  angular.module('ngSanitize');
  deps.push('ngSanitize');
} catch (e) {}
 
try {
  //This throws an expection if module does not exist.
  angular.module('ui.sortable');
  deps.push('ui.sortable');
} catch (e) {}
 
try {
  //This throws an expection if module does not exist.
  angular.module('angularSpectrumColorpicker');
  deps.push('angularSpectrumColorpicker');
} catch (e) {}
 
angular.module('schemaForm', deps);