Denys Vuika f7e6ef55a2 demo for ng1 app hosting ng2 components
Simple project demonstrating ng2 component hosting within ng1-based
application (based on official angular-seed repo).
2016-04-06 15:23:19 +01:00

18 lines
492 B
JavaScript

'use strict';
describe('myApp.version module', function() {
beforeEach(module('myApp.version'));
describe('app-version directive', 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');
});
});
});
});