Skip to content

Commit 895bb77

Browse files
committed
CCM-11966: Feedback
1 parent 907c296 commit 895bb77

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

lambdas/event-publisher/src/__tests__/domain/should-publish.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ describe('shouldPublish', () => {
5252
PROOF_AVAILABLE: true,
5353
SUBMITTED: true,
5454
WAITING_FOR_PROOF: true,
55-
TEMPLATE_PROOF_APPROVED: false,
5655
PENDING_UPLOAD: false,
5756
PENDING_VALIDATION: false,
5857
VALIDATION_FAILED: false,

utils/utils/src/__tests__/enum.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -216,28 +216,28 @@ describe('statusToDisplayMapping', () => {
216216
}
217217
);
218218

219-
test('statusToDisplay if routing is enabled', () => {
219+
test('statusToDisplay if no files', () => {
220220
expect(
221221
statusToDisplayMapping(
222222
{
223-
...mockLetterWithFilesTemplate,
223+
...mockLetterTemplate,
224224
templateStatus: 'SUBMITTED',
225225
},
226226
true
227227
)
228-
).toEqual('Template proof approved');
228+
).toEqual('Submitted');
229229
});
230230

231-
test('statusToDisplay if no files', () => {
231+
test('statusToDisplay if routing is enabled', () => {
232232
expect(
233233
statusToDisplayMapping(
234234
{
235-
...mockLetterTemplate,
235+
...mockLetterWithFilesTemplate,
236236
templateStatus: 'SUBMITTED',
237237
},
238-
false
238+
true
239239
)
240-
).toEqual('Submitted');
240+
).toEqual('Template proof approved');
241241
});
242242

243243
test('SUBMITTED', () => {

0 commit comments

Comments
 (0)