mirror of
https://github.com/gwenhael-le-moine/ledgerrb.git
synced 2025-01-11 08:01:03 +01:00
19 lines
506 B
JavaScript
19 lines
506 B
JavaScript
'use strict';
|
|
|
|
/* jasmine specs for directives go here */
|
|
|
|
describe('directives', function() {
|
|
beforeEach(module('app'));
|
|
|
|
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');
|
|
});
|
|
});
|
|
});
|
|
});
|