Skip to content

Commit

Permalink
feat: exclude archived features in max reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
kwasniew committed Jul 9, 2024
1 parent 5814fc5 commit 9916b18
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ describe('max metrics collection', () => {
} as const;
};

const strategyWithConstrains = (
const strategyWithConstraints = (
feature: string,
constraint: IConstraint,
) => {
Expand Down Expand Up @@ -343,18 +343,18 @@ describe('max metrics collection', () => {

const maxValueCount = 100;
await featureStrategiesStore.createStrategyFeatureEnv(
strategyWithConstrains(flagA.name, bigConstraint(maxValueCount)),
strategyWithConstraints(flagA.name, bigConstraint(maxValueCount)),
);
await featureStrategiesStore.createStrategyFeatureEnv(
strategyWithConstrains(flagB.name, {
strategyWithConstraints(flagB.name, {
operator: 'IN',
contextName: 'appName',
}),
);
await featureStrategiesStore.createStrategyFeatureEnv(
strategyWithConstrains(
strategyWithConstraints(
flagC.name,
bigConstraint(maxValueCount + 10),
bigConstraint(maxValueCount + 1),
),
);

Expand Down

0 comments on commit 9916b18

Please sign in to comment.