Code coverage report for common/directives/version.js

Statements: 100% (5 / 5)      Branches: 100% (0 / 0)      Functions: 100% (3 / 3)      Lines: 100% (5 / 5)      Ignored: none     

All files » common/directives/ » version.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 171     1 1       1         1      
(function() {
  'use strict';
 
  function versionDirective(version) {
    return {
      restrict: 'A',
      /*jshint unused:false*/
      link: function(scope, elm, attrs) {
        elm.text(version);
      }
    };
  }
 
  angular.module('common.directives.version', [])
    .directive('appVersion', versionDirective);
})();