Skip to content

Commit 7f74ca5

Browse files
committed
Fix failed test case
1 parent fea61c0 commit 7f74ca5

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/core/audience_evaluator/index.spec.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,6 @@ describe('lib/core/audience_evaluator', () => {
207207
});
208208

209209
describe('integration with dependencies', () => {
210-
vi.mock('../condition_tree_evaluator', () => ({
211-
evaluate: vi.fn(),
212-
}));
213-
214210
beforeEach(() => {
215211
vi.clearAllMocks();
216212
vi.spyOn(conditionTreeEvaluator, 'evaluate').mockImplementation(() => true);
@@ -385,6 +381,7 @@ describe('lib/core/audience_evaluator', () => {
385381
audienceEvaluator = createAudienceEvaluator({
386382
special_condition_type: {
387383
evaluate: (condition: any, user: any) => {
384+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
388385
// @ts-ignore
389386
const result = mockEnvironment[condition.value] && user.getAttributes()[condition.match] > 0;
390387
return result;
@@ -646,7 +643,7 @@ describe('lib/core/audience_evaluator', () => {
646643
});
647644
});
648645

649-
it('with multiple types of evaluators', () => {
646+
describe('with multiple types of evaluators', () => {
650647
const audience1And2 = {
651648
id: '0',
652649
name: 'audience1And2',

0 commit comments

Comments
 (0)