Skip to content

Commit

Permalink
Rename files and fields
Browse files Browse the repository at this point in the history
  • Loading branch information
kalena committed Jun 13, 2024
1 parent cff1138 commit 2153d86
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions force-app/main/default/classes/FieldLabelController.cls
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ public with sharing class FieldLabelController {
@AuraEnabled(cacheable=true)
public static String getFieldLabels(
String objectName,
String fieldAPIName
String fieldApiName
) {
String label = null;
try {
Expand All @@ -11,7 +11,7 @@ public with sharing class FieldLabelController {
.get(objectName)
.getDescribe()
.fields.getMap();
label = fieldMap.get(fieldAPIName).getDescribe().getLabel();
label = fieldMap.get(fieldApiName).getDescribe().getLabel();
} catch (Exception e) {
throw new AuraHandledException(e.getMessage());
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@isTest
public class FieldLabelControllerTest {
public class FieldLabelController_Test {
@isTest
static void labelTest() {
String fieldApiName = 'CreatedDate';
Expand Down

0 comments on commit 2153d86

Please sign in to comment.