Skip to content

Commit

Permalink
Apply cfformat changes
Browse files Browse the repository at this point in the history
  • Loading branch information
otisnado authored and github-actions[bot] committed Dec 10, 2024
1 parent 087c0fd commit 4f95e32
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion models/TwilioClient.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ component singleton accessors="true" {
function getSMS( required string sid ) {
return newRequest()
.setMethod( "GET" )
.setUrl( "/Accounts/#variables.accountSID#/Messages/#arguments.sid#.json")
.setUrl( "/Accounts/#variables.accountSID#/Messages/#arguments.sid#.json" )
}

/**
Expand Down
8 changes: 6 additions & 2 deletions tests/specs/unit/SignatureTest.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ component extends="testbox.system.BaseSpec" {
"Digits": "1234"
};
var expectedSignature = "GvWf1cFY/Q7PnoempGyD5oXAezc=";
expect( validator.validate( expectedSignature, uri, formParams ) ).toBeTrue( "Signature should have validated correctly" );
expect( validator.validate( expectedSignature, uri, formParams ) ).toBeTrue(
"Signature should have validated correctly"
);
} );

it( "returns false for an invalid signature", function() {
Expand All @@ -29,7 +31,9 @@ component extends="testbox.system.BaseSpec" {
"Digits": "1234"
};
var invalidSignature = "invalid";
expect( validator.validate( invalidSignature, uri, formParams ) ).toBeFalse( "Signature should not have validated correctly" );
expect( validator.validate( invalidSignature, uri, formParams ) ).toBeFalse(
"Signature should not have validated correctly"
);
} );
} );
}
Expand Down

0 comments on commit 4f95e32

Please sign in to comment.