Skip to content

Commit 755756f

Browse files
committed
CCM-9118 Remove type casting
1 parent 978e0ee commit 755756f

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

tests/test-team/template-mgmt-e2e-tests/template-mgmt-sftp-send-proof.e2e.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function getTestDataInputFinder(testData: Record<string, string>[]) {
3636
};
3737
}
3838

39-
test.describe('SFTP proof send @debug', () => {
39+
test.describe('SFTP proof send', () => {
4040
const templateStorageHelper = new TemplateStorageHelper();
4141
let user: TestUser;
4242

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

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -221,15 +221,12 @@ describe('templateDisplayCopyAction', () => {
221221
['LETTER', 'PROOF_AVAILABLE', false],
222222
])(
223223
'should give the expected result for display of copy action when template has type of %s and status of %s',
224-
(type, status, shouldDisplayCopyAction) => {
225-
const templateType = type as TemplateType;
226-
const templateStatus = status as TemplateStatus;
227-
224+
(templateType, templateStatus, shouldDisplayCopyAction) => {
228225
expect(
229226
templateDisplayCopyAction({
230227
templateType,
231228
templateStatus,
232-
} as TemplateDto)
229+
})
233230
).toBe(shouldDisplayCopyAction);
234231
}
235232
);
@@ -259,15 +256,12 @@ describe('templateDisplayDeleteAction', () => {
259256
['LETTER', 'PROOF_AVAILABLE', true],
260257
])(
261258
'should give the expected result for display of delete action when template has type of %s and status of %s',
262-
(type, status, shouldDisplayDeleteAction) => {
263-
const templateType = type as TemplateType;
264-
const templateStatus = status as TemplateStatus;
265-
259+
(templateType, templateStatus, shouldDisplayDeleteAction) => {
266260
expect(
267261
templateDisplayDeleteAction({
268262
templateType,
269263
templateStatus,
270-
} as TemplateDto)
264+
})
271265
).toBe(shouldDisplayDeleteAction);
272266
}
273267
);

0 commit comments

Comments
 (0)