File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
lib/core/audience_evaluator Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -207,10 +207,6 @@ describe('lib/core/audience_evaluator', () => {
207
207
} ) ;
208
208
209
209
describe ( 'integration with dependencies' , ( ) => {
210
- vi . mock ( '../condition_tree_evaluator' , ( ) => ( {
211
- evaluate : vi . fn ( ) ,
212
- } ) ) ;
213
-
214
210
beforeEach ( ( ) => {
215
211
vi . clearAllMocks ( ) ;
216
212
vi . spyOn ( conditionTreeEvaluator , 'evaluate' ) . mockImplementation ( ( ) => true ) ;
@@ -385,6 +381,7 @@ describe('lib/core/audience_evaluator', () => {
385
381
audienceEvaluator = createAudienceEvaluator ( {
386
382
special_condition_type : {
387
383
evaluate : ( condition : any , user : any ) => {
384
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
388
385
// @ts -ignore
389
386
const result = mockEnvironment [ condition . value ] && user . getAttributes ( ) [ condition . match ] > 0 ;
390
387
return result ;
@@ -646,7 +643,7 @@ describe('lib/core/audience_evaluator', () => {
646
643
} ) ;
647
644
} ) ;
648
645
649
- it ( 'with multiple types of evaluators' , ( ) => {
646
+ describe ( 'with multiple types of evaluators' , ( ) => {
650
647
const audience1And2 = {
651
648
id : '0' ,
652
649
name : 'audience1And2' ,
You can’t perform that action at this time.
0 commit comments