Skip to content

Commit

Permalink
Merge branch 'B-20536-MAIN' into B-20536-INT
Browse files Browse the repository at this point in the history
  • Loading branch information
paulstonebraker committed Jan 21, 2025
2 parents 36814f3 + 97c702e commit 10f45a1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ describe('When given a move that has been assigned', () => {
changedValues: {
sc_assigned_id: 'fb625e3c-067c-49d7-8fd9-88ef040e6137',
},
oldValues: {
sc_assigned_id: null,
},
context: [{ assigned_office_user_last_name: 'Daniels', assigned_office_user_first_name: 'Jayden' }],
};

Expand All @@ -36,6 +39,7 @@ describe('When given a move that has been assigned', () => {
});
it('task ordering officer', () => {
historyRecord.changedValues = { too_assigned_id: 'fb625e3c-067c-49d7-8fd9-88ef040e6137' };
historyRecord.oldValues = { too_assigned_id: null };
historyRecord.context = [
{ assigned_office_user_last_name: 'Robinson', assigned_office_user_first_name: 'Brian' },
];
Expand All @@ -48,6 +52,7 @@ describe('When given a move that has been assigned', () => {
});
it('task invoicing officer', () => {
historyRecord.changedValues = { tio_assigned_id: 'fb625e3c-067c-49d7-8fd9-88ef040e6137' };
historyRecord.oldValues = { tio_assigned_id: null };
historyRecord.context = [{ assigned_office_user_last_name: 'Luvu', assigned_office_user_first_name: 'Frankie' }];

const template = getTemplate(historyRecord);
Expand Down
9 changes: 9 additions & 0 deletions src/utils/formatters.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,9 @@ describe('formatAssignedOfficeUserFromContext', () => {
changedValues: {
sc_assigned_id: 'fb625e3c-067c-49d7-8fd9-88ef040e6137',
},
oldValues: {
sc_assigned_id: null,
},
context: [{ assigned_office_user_last_name: 'Daniels', assigned_office_user_first_name: 'Jayden' }],
};

Expand All @@ -370,6 +373,9 @@ describe('formatAssignedOfficeUserFromContext', () => {
changedValues: {
too_assigned_id: 'fb625e3c-067c-49d7-8fd9-88ef040e6137',
},
oldValues: {
too_assigned_id: null,
},
context: [{ assigned_office_user_last_name: 'McLaurin', assigned_office_user_first_name: 'Terry' }],
};

Expand All @@ -385,6 +391,9 @@ describe('formatAssignedOfficeUserFromContext', () => {
changedValues: {
tio_assigned_id: 'fb625e3c-067c-49d7-8fd9-88ef040e6137',
},
oldValues: {
tio_assigned_id: null,
},
context: [{ assigned_office_user_last_name: 'Robinson', assigned_office_user_first_name: 'Brian' }],
};

Expand Down

0 comments on commit 10f45a1

Please sign in to comment.