Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 325eecf

Browse files
author
Gonzalo Ruiz de Villa
committed
style(formSpec): fix test indentation
1 parent 3f07eb2 commit 325eecf

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

Diff for: test/ng/directive/formSpec.js

+25-25
Original file line numberDiff line numberDiff line change
@@ -495,35 +495,35 @@ describe('form', function() {
495495
expect(doc.find('div').hasClass('ng-valid-required')).toBe(false);
496496
});
497497

498-
it('should leave the parent form invalid when deregister a removed input', function() {
499-
doc = jqLite(
500-
'<form name="parent">' +
501-
'<div class="ng-form" name="child">' +
502-
'<input ng-if="inputPresent" ng-model="modelA" name="inputA" required>' +
503-
'<input ng-model="modelB" name="inputB" required>' +
504-
'</div>' +
505-
'</form>');
506-
$compile(doc)(scope);
507-
scope.inputPresent = true;
508-
scope.$apply();
498+
it('should leave the parent form invalid when deregister a removed input', function() {
499+
doc = jqLite(
500+
'<form name="parent">' +
501+
'<div class="ng-form" name="child">' +
502+
'<input ng-if="inputPresent" ng-model="modelA" name="inputA" required>' +
503+
'<input ng-model="modelB" name="inputB" required>' +
504+
'</div>' +
505+
'</form>');
506+
$compile(doc)(scope);
507+
scope.inputPresent = true;
508+
scope.$apply();
509509

510-
var parent = scope.parent,
511-
child = scope.child,
512-
inputA = child.inputA,
513-
inputB = child.inputB;
510+
var parent = scope.parent,
511+
child = scope.child,
512+
inputA = child.inputA,
513+
inputB = child.inputB;
514514

515-
expect(parent).toBeDefined();
516-
expect(child).toBeDefined();
517-
expect(parent.$error.required).toEqual([child]);
518-
expect(child.$error.required).toEqual([inputB, inputA]);
515+
expect(parent).toBeDefined();
516+
expect(child).toBeDefined();
517+
expect(parent.$error.required).toEqual([child]);
518+
expect(child.$error.required).toEqual([inputB, inputA]);
519519

520-
//remove child input
521-
scope.inputPresent = false;
522-
scope.$apply();
520+
//remove child input
521+
scope.inputPresent = false;
522+
scope.$apply();
523523

524-
expect(parent.$error.required).toEqual([child]);
525-
expect(child.$error.required).toEqual([inputB]);
526-
});
524+
expect(parent.$error.required).toEqual([child]);
525+
expect(child.$error.required).toEqual([inputB]);
526+
});
527527

528528
it('should chain nested forms in repeater', function() {
529529
doc = jqLite(

0 commit comments

Comments
 (0)