Skip to content
Merged
Show file tree
Hide file tree
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
11 changes: 3 additions & 8 deletions src/lib/utilities/get-single-attribute-for-event.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ describe('getSummaryEvent', () => {
});
});

it('should return the input for a NexusOperationScheduled event', async () => {
it('should return the operation for a NexusOperationScheduled event', async () => {
const nexusEvent = {
eventId: '5',
eventTime: '2024-07-11T17:42:53.326959Z',
Expand All @@ -310,13 +310,8 @@ describe('getSummaryEvent', () => {
};
const event = await toEvent(nexusEvent);
expect(getSummaryAttribute(event)).toStrictEqual({
key: 'input',
value: {
data: 'InN0YXJ0LWFzeW5jIg==',
metadata: {
encoding: 'anNvbi9wbGFpbg==',
},
},
key: 'operation',
value: 'custom-op',
});
});
});
2 changes: 1 addition & 1 deletion src/lib/utilities/get-single-attribute-for-event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ const preferredSummaryKeys = [
'activityType',
'signalName',
'workflowType',
'operation',
'result',
'failure',
'input',
Expand All @@ -264,7 +265,6 @@ const preferredSummaryKeys = [
'identity',
'parentInitiatedEventId',
'endpointId',
'operation',
] as const;

/**
Expand Down
Loading