File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -358,7 +358,7 @@ describe('EppoJSClient E2E test', () => {
358
358
const client = getInstance ( ) ;
359
359
360
360
const typeAssignmentFunctions = {
361
- [ VariationType . BOOLEAN ] : client . getBoolAssignment . bind ( client ) ,
361
+ [ VariationType . BOOLEAN ] : client . getBooleanAssignment . bind ( client ) ,
362
362
[ VariationType . NUMERIC ] : client . getNumericAssignment . bind ( client ) ,
363
363
[ VariationType . INTEGER ] : client . getIntegerAssignment . bind ( client ) ,
364
364
[ VariationType . STRING ] : client . getStringAssignment . bind ( client ) ,
Original file line number Diff line number Diff line change @@ -90,14 +90,13 @@ export function getTestAssignments(
90
90
assignment : string | boolean | number | object ;
91
91
} [ ] = [ ] ;
92
92
for ( const subject of testCase . subjects ) {
93
- const assignment =
94
- assignmentFn (
95
- testCase . flag ,
96
- subject . subjectKey ,
97
- subject . subjectAttributes ,
98
- testCase . defaultValue ,
99
- obfuscated ,
100
- ) || testCase . defaultValue ; // Fallback to defaultValue if null
93
+ const assignment = assignmentFn (
94
+ testCase . flag ,
95
+ subject . subjectKey ,
96
+ subject . subjectAttributes ,
97
+ testCase . defaultValue ,
98
+ obfuscated ,
99
+ ) ;
101
100
assignments . push ( { subject : subject , assignment : assignment } ) ;
102
101
}
103
102
return assignments ;
You can’t perform that action at this time.
0 commit comments