helperdirectiveSpec.js
652 Bytes
/*jshint unused: vars */
define(['angular', 'angular-mocks', 'app'], function(angular, mocks, app) {
'use strict';
describe('Directive: helperDirective', function () {
// load the directive's module
beforeEach(module('tshatsApp'));
var element,
scope;
beforeEach(inject(function ($rootScope) {
scope = $rootScope.$new();
}));
it('should make hidden element visible', inject(function ($compile) {
element = angular.element('<helper-directive></helper-directive>');
element = $compile(element)(scope);
expect(element.text()).toBe('this is the helperDirective directive');
}));
});
});