Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions ballerina/tests/tests.bal
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ string globalEventId = "";
string eventId = "";

isolated function initApiKeyClient() returns Client|error {
if isLiveServer{
if isLiveServer {
if hapikey == "" {
return error("API Key is missing.");
}
Expand All @@ -63,9 +63,9 @@ isolated function initOAuth2Client() returns Client|error {
return error("OAuth2 credentials are not available");
}
OAuth2RefreshTokenGrantConfig oauthConfig = {
clientId: clientId,
clientSecret: clientSecret,
refreshToken: refreshToken,
clientId,
clientSecret,
refreshToken,
credentialBearer: oauth2:POST_BODY_BEARER
};
return check new ({auth: oauthConfig}, serviceUrl);
Expand Down Expand Up @@ -127,7 +127,7 @@ function testUpdateEventTemplate() returns error? {
lock {
eventTemplateId = globalEventTemplateId;
}
TimelineEventTemplateUpdateRequest payload ={
TimelineEventTemplateUpdateRequest payload = {
detailTemplate: "Registration occurred at {{#formatDate timestamp}}{{/formatDate}}\n\n#### Questions\n{{#each extraData.questions}}\n **{{question}}**: {{answer}}\n{{/each}}\n\nEDIT",
name: "PetSpot Registration",
tokens: [
Expand Down
Loading