All files / libs/kernel/testing/server/bed/src/test-utils/fixtures/amalia calculations.ts

100% Statements 30/30
100% Branches 0/0
100% Functions 0/0
100% Lines 30/30

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 311x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x  
import { type Calculation } from '@amalia/core/models';
import { CalculationStatus, CalculationTrigger, CalculationType } from '@amalia/core/types';
 
import { company } from './company';
import { periods } from './periods';
 
export const calculations = [
  {
    id: '65e0a195-b804-43b7-9525-d646c79be2a9',
    status: CalculationStatus.PENDING,
    total: 0,
    descriptor: [
      {
        periodId: periods.november2019.id,
        periodName: periods.november2019.name,
        plansWeight: 0,
        batches: [],
      },
    ],
    query: {},
    type: CalculationType.STATEMENT,
    calculated: 0,
    companyId: company.id,
    company,
    withRollingPeriods: false,
    trigger: CalculationTrigger.DATA_REFRESHMENT,
    createdAt: new Date(),
    updatedAt: new Date(),
  },
] as const satisfies Calculation[];