webogram-i2p/test/unit/directivesSpec.js
2014-01-05 20:07:11 +04:00

20 lines
519 B
JavaScript

'use strict';
/* jasmine specs for directives go here */
describe('directives', function() {
beforeEach(module('myApp.directives'));
describe('app-version', function() {
it('should print current version', function() {
module(function($provide) {
$provide.value('version', 'TEST_VER');
});
inject(function($compile, $rootScope) {
var element = $compile('<span app-version></span>')($rootScope);
expect(element.text()).toEqual('TEST_VER');
});
});
});
});