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

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

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 231x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x  
import { type BadgeConfiguration } from '@amalia/core/models';
import { BadgeConfigurationIcon, BadgeConfigurationType } from '@amalia/payout-definition/plans/types';
 
import { company } from './company';
import { plans } from './plans';
import { variables } from './variables';
 
export const badgeConfigurations = {
  targetReached: {
    id: 'a211e0e4-5120-44d3-810a-1d0f58a048e7',
    name: 'Target Reached',
    description: 'description',
    type: BadgeConfigurationType.KPI,
    icon: BadgeConfigurationIcon.WINNER,
    planId: plans.planWithoutRules.id,
    variableId: variables.variableUsedInBadgeConfiguration.id,
    createdAt: new Date(),
    updatedAt: new Date(),
    companyId: company.id,
    deletedAt: null,
  },
} as const satisfies Record<string, BadgeConfiguration>;