This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

bug 161: decrufting

  • Loading branch information...
Christopher Hiller
Christopher Hiller committed Aug 25, 2012
1 parent ff6d621 commit f1125504d10c1e5b1180f5497bfec2319289233f
Showing with 1 addition and 3 deletions.
  1. +1 −3 modules/directives/date/test/dateSpec.js
@@ -113,9 +113,7 @@ describe('uiDate', function() {
describe('use with ng-required directive', function() {
it('should be invalid initially', function() {
return inject(function($compile, $rootScope) {
- var aDate, element;
- aDate = new Date(2010, 12, 1);
- element = $compile("<div ui-date ng-model='x' ng-required='true' ></div>")($rootScope);
+ var element = $compile("<div ui-date ng-model='x' ng-required='true' ></div>")($rootScope);
$rootScope.$apply();
return expect(element.hasClass('ng-invalid')).toBeTruthy();
});

0 comments on commit f112550

Please sign in to comment.