'use strict'; describe('form', function() { var doc; afterEach(function() { dealoc(doc); }); it('should attach form to DOM', function() { doc = angular.element('
'); var scope = angular.compile(doc)(); expect(scope.myForm).toBeTruthy(); expect(doc.data('$form')).toBeTruthy(); expect(doc.data('$form')).toEqual(scope.myForm); }); it('should have ng-valide/ng-invalid style', function() { doc = angular.element('