Skip to content

Commit 4ef74ce

Browse files
elpeteactions-user
authored andcommitted
Apply cfformat changes
1 parent 7f387c4 commit 4ef74ce

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

models/validators/EmptyValidator.cfc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ component extends="BaseValidator" accessors="true" singleton {
4040
);
4141
}
4242

43-
// return true if no data to check, empty needs a data element to be checked.
43+
// return true if no data to check, empty needs a data element to be checked.
4444
if ( isNull( arguments.targetValue ) ) {
4545
return true;
4646
}

test-harness/tests/specs/validators/EmptyValidatorTest.cfc

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,17 @@ component extends="coldbox.system.testing.BaseModelTest" model="cbvalidation.mod
1616
variables.result = createMock( "cbvalidation.models.result.ValidationResult" ).init();
1717
} );
1818

19-
it( "skips over null values", function() {
20-
expect( model.validate( variables.result, this, "test", javacast( "null", "" ), true ) ).toBeTrue();
21-
} );
19+
it( "skips over null values", function(){
20+
expect(
21+
model.validate(
22+
variables.result,
23+
this,
24+
"test",
25+
javacast( "null", "" ),
26+
true
27+
)
28+
).toBeTrue();
29+
} );
2230

2331
describe( "empty: true", function(){
2432
it( "passes when given an empty string", function(){

0 commit comments

Comments
 (0)