Skip to content

Commit

Permalink
Fixed some prettier formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jongpie committed Oct 24, 2023
1 parent d1ac860 commit ab94cd4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1023,10 +1023,10 @@ private class LogEntryEventBuilder_Tests {
System.Assert.isNull(builder.getLogEntryEvent().RecordSObjectType__c);
System.Assert.isNull(builder.getLogEntryEvent().RecordSObjectTypeNamespace__c);

Map<Id, SObject> userIdToUser = new Map<Id, SObject>{null => new User(Id = System.UserInfo.getUserId())};
Map<Id, SObject> userIdToUser = new Map<Id, SObject>{ null => new User(Id = System.UserInfo.getUserId()) };
builder.setRecord(userIdToUser);

Map<String, SObject> userIdStringToUser = new Map<String, SObject>{'' => userIdToUser.get(null)};
Map<String, SObject> userIdStringToUser = new Map<String, SObject>{ '' => userIdToUser.get(null) };
System.Assert.areEqual(userIdToUser.size(), builder.getLogEntryEvent().RecordCollectionSize__c);
System.Assert.areEqual('Map', builder.getLogEntryEvent().RecordCollectionType__c);
System.Assert.isNull(builder.getLogEntryEvent().RecordId__c);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ private class LogEntryEventBuilder_Tests_Security {
.populateMockId()
.populateRequiredFields()
.getRecord();
mockIdToAccountBrand.put(mockAccountBrand.Id, mockAccountBrand);
mockIdToAccountBrand.put(mockAccountBrand.Id, mockAccountBrand);

// The 'standard user' profile doesn't have access to AccountBrand,
// so stripAccessible will remove everything except the ID field
Expand All @@ -106,7 +106,7 @@ private class LogEntryEventBuilder_Tests_Security {
}
// Previous versions of Nebula Logger would throw a runtime exception if the Map contained a null key,
// so add one to ensure it works as expected
AccountBrand anotherMockAccountBrand = (AccountBrand) LoggerMockDataCreator.createDataBuilder(Schema.AccountBrand.SObjectType)
AccountBrand anotherMockAccountBrand = (AccountBrand) LoggerMockDataCreator.createDataBuilder(Schema.AccountBrand.SObjectType)
.populateRequiredFields()
.getRecord();
mockIdToAccountBrand.put(null, anotherMockAccountBrand);
Expand Down

0 comments on commit ab94cd4

Please sign in to comment.