generator-easy
Version:
An EASY stack generator, Express Angular Stylus Yeoman
21 lines (15 loc) • 569 B
JavaScript
;
describe('Directive: <%= _.camelize(name) %>', function () {
// load the directive's module
beforeEach(module('<%= _.camelize(appname) %>App'));
var element,
scope;
beforeEach(inject(function ($rootScope) {
scope = $rootScope.$new();
}));
it('should make hidden element visible', inject(function ($compile) {
element = angular.element('<<%= _.dasherize(name) %>></<%= _.dasherize(name) %>>');
element = $compile(element)(scope);
expect(element.text()).toBe('this is the <%= _.camelize(name) %> directive');
}));
});