UNPKG

generator-easy

Version:

An EASY stack generator, Express Angular Stylus Yeoman

17 lines (11 loc) 515 B
'use strict' describe 'Directive: <%= _.camelize(name) %>', () -> # load the directive's module beforeEach module '<%= _.camelize(appname) %>App' scope = {} beforeEach inject ($controller, $rootScope) -> scope = $rootScope.$new() it 'should make hidden element visible', inject ($compile) -> element = angular.element '<<%= _.dasherize(name) %>></<%= _.dasherize(name) %>>' element = $compile(element) scope expect(element.text()).toBe 'this is the <%= _.camelize(name) %> directive'