Skip to content

Commit 3544b13

Browse files
committed
CCM-9118 Update actions for proof available
1 parent 59de7ee commit 3544b13

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ describe('templateDisplayCopyAction', () => {
282282
['LETTER', 'PENDING_VALIDATION', false],
283283
['LETTER', 'VIRUS_SCAN_FAILED', false],
284284
['LETTER', 'VALIDATION_FAILED', false],
285-
['LETTER', 'PROOF_AVAILABLE', false], // TO CHECK
285+
['LETTER', 'PROOF_AVAILABLE', false],
286286
])(
287287
'should give the expected result for display of copy action when template has type of %s and status of %s',
288288
(type, status, shouldDisplayCopyAction) => {
@@ -320,7 +320,7 @@ describe('templateDisplayDeleteAction', () => {
320320
['LETTER', 'PENDING_VALIDATION', true],
321321
['LETTER', 'VIRUS_SCAN_FAILED', true],
322322
['LETTER', 'VALIDATION_FAILED', true],
323-
['LETTER', 'PROOF_AVAILABLE', true], // TO CHECK
323+
['LETTER', 'PROOF_AVAILABLE', true],
324324
])(
325325
'should give the expected result for display of delete action when template has type of %s and status of %s',
326326
(type, status, shouldDisplayDeleteAction) => {

utils/utils/src/enum.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export const templateStatusCopyAction = (status: TemplateStatus) =>
128128
VIRUS_SCAN_FAILED: true,
129129
VALIDATION_FAILED: true,
130130
WAITING_FOR_PROOF: false,
131-
PROOF_AVAILABLE: true, // TO CHECK
131+
PROOF_AVAILABLE: false,
132132
}) as const
133133
)[status];
134134

@@ -152,7 +152,7 @@ export const templateStatusDeleteAction = (status: TemplateStatus) =>
152152
VIRUS_SCAN_FAILED: true,
153153
VALIDATION_FAILED: true,
154154
WAITING_FOR_PROOF: false,
155-
PROOF_AVAILABLE: true, // TO CHECK
155+
PROOF_AVAILABLE: true,
156156
}) as const
157157
)[status];
158158

0 commit comments

Comments
 (0)