refactor: stabilize cumulative mileage metrics
This commit is contained in:
@@ -19,6 +19,10 @@ test('lists mileage metrics without exposing the catalog array', () => {
|
||||
assert.ok(metrics.length >= 5);
|
||||
assert.notEqual(metrics, METRIC_CATALOG);
|
||||
assert.ok(metrics.every(metric => metric.domain === 'mileage'));
|
||||
assert.equal(
|
||||
metrics.find(metric => metric.id === 'mileage.cumulative_odometer_sum')?.timeSemantics,
|
||||
'snapshot',
|
||||
);
|
||||
});
|
||||
|
||||
test('publishes hydrogen cost, revenue, and gross profit as separate metrics', () => {
|
||||
|
||||
Reference in New Issue
Block a user