version-directive.spec.js 492 B

1234567891011121314151617
  1. 'use strict';
  2. describe('myApp.version module', function() {
  3. beforeEach(module('myApp.version'));
  4. describe('app-version directive', function() {
  5. it('should print current version', function() {
  6. module(function($provide) {
  7. $provide.value('version', 'TEST_VER');
  8. });
  9. inject(function($compile, $rootScope) {
  10. var element = $compile('<span app-version></span>')($rootScope);
  11. expect(element.text()).toEqual('TEST_VER');
  12. });
  13. });
  14. });
  15. });