Skip to content

Commit

Permalink
fixup! front: add rolling stock category types and api processing
Browse files Browse the repository at this point in the history
  • Loading branch information
Alice K. committed Feb 13, 2025
1 parent b3f1ab8 commit 135feea
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ describe('checkRollingStockFormValidity', () => {
'rollingResistanceA',
'rollingResistanceB',
'rollingResistanceC',
'primaryCategory',
],
validRollingStockForm: {
name: 'auietsrn',
Expand All @@ -61,6 +62,7 @@ describe('checkRollingStockFormValidity', () => {
rollingResistanceA: { max: 20, min: 0, unit: 'kN', value: 0 },
rollingResistanceB: { max: 0.5, min: 0, unit: 'kN/(km/h)', value: 0 },
rollingResistanceC: { max: 0.01, min: 0, unit: 'kN/(km/h)²', value: 0 },
primaryCategory: 'FREIGHT_TRAIN',
},
invalidEffortCurves: [],
};
Expand All @@ -79,6 +81,7 @@ describe('checkRollingStockFormValidity', () => {
maxSpeed: { unit: 'km/h', value: 100 },
loadingGauge: 'G1',
basePowerClass: null,
primaryCategory: 'FAST_FREIGHT_TRAIN',
} as RollingStockParametersValues;

const expected = {
Expand Down Expand Up @@ -140,6 +143,7 @@ describe('checkRollingStockFormValidity', () => {
'rollingResistanceC',
'electricalPowerStartupTime',
'raisePantographTime',
'primaryCategory',
],
validRollingStockForm: {
name: 'auietsrn',
Expand All @@ -158,6 +162,7 @@ describe('checkRollingStockFormValidity', () => {
electricalPowerStartupTime: 0,
raisePantographTime: 15,
basePowerClass: null,
primaryCategory: 'FREIGHT_TRAIN',
},
invalidEffortCurves: [],
};
Expand Down

0 comments on commit 135feea

Please sign in to comment.