Blame view
test/spec/directives/helperdirectiveSpec.js
652 Bytes
6f105dbd5
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
/*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'); })); }); }); |