Skip to content

Commit

Permalink
feat(cb2-13762): remove test code
Browse files Browse the repository at this point in the history
  • Loading branch information
pbardy2000 committed Aug 30, 2024
1 parent c0535c0 commit 3f251d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/models/test-types/test-type.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export interface TestType {
testTypeId: string;
testNumber: string;
name: string;
testCode: string;
testCode?: string;
testTypeName: string;

testTypeStartTimestamp: string | Date;
Expand Down
3 changes: 3 additions & 0 deletions src/app/store/test-records/reducers/test-records.reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ function cleanTestResultPayload(testResult: TestResultModel | undefined) {
}

const testTypes = testResult.testTypes.map((testType, index) => {
// Always remove testCode
delete testType.testCode;

// Remove empty requiredStandards from pass/prs non-voluntary IVA/MVSA tests
if (index === 0) {
const { testTypeId, requiredStandards } = testType;
Expand Down

0 comments on commit 3f251d1

Please sign in to comment.