describe('directives', function() {
  var $scope, form;

  beforeEach(module('ddsApp'));
  beforeEach(module('templates'));

  beforeEach(inject(function($compile, $rootScope) {
    $scope = $rootScope;
    var element = angular.element(
      '<form name="form">' +
      '<input ng-model="model.date" name="date" dds-date>' +
      '</form>'
    );
    $scope.model = { date: null }
    $compile(element)($scope);
    form = $scope.form;
  }));

  describe('integer', function() {
    it('should pass with a valid date', function() {
      form.date.$setViewValue('12/08/1980');
      $scope.$digest();
      expect(form.date.$valid).toBe(true);
    });

    it('should not pass with an invalid date', function() {
      form.date.$setViewValue('99/99/1980');
      $scope.$digest();
      expect(form.date.$valid).toBe(false);
    });
  });
});

@@ -1,16 +1,31 @@
+'use strict';%0A%0A
 describe('direct
@@ -27,17 +27,25 @@
 irective
-s
+ dds-date
 ', funct
@@ -400,16 +400,17 @@
 : null %7D
+;
 %0A    $co
@@ -469,45 +469,8 @@
 );%0A%0A
-  describe('integer', function() %7B%0A  
   it
@@ -508,34 +508,32 @@
 ', function() %7B%0A
-  
     form.date.$s
@@ -555,34 +555,32 @@
 /08/1980');%0A    
-  
 $scope.$digest()
@@ -573,34 +573,32 @@
 cope.$digest();%0A
-  
     expect(form.
@@ -618,26 +618,24 @@
 toBe(true);%0A
-  
   %7D);%0A%0A    i
@@ -631,18 +631,16 @@
  %7D);%0A%0A  
- 
- 
 it('shou
@@ -691,18 +691,16 @@
 ) %7B%0A    
-  
 form.dat
@@ -734,18 +734,16 @@
 ');%0A    
- 
- 
 $scope.$
@@ -752,18 +752,16 @@
 gest();%0A
-  
     expe
@@ -798,16 +798,8 @@
 e);%0A
-    %7D);%0A
   %7D)

fix build test directive dds-date