Skip to content

Commit 232d895

Browse files
authored
fix: don't fallback to default value in test harness (#72)
* fix: don't fallback to default value
1 parent 475565a commit 232d895

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/__tests__/testHelpers.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,13 @@ export function getTestAssignments(
8080
assignment: string | boolean | number | object;
8181
}[] = [];
8282
for (const subject of testCase.subjects) {
83-
const assignment =
84-
assignmentFn(
85-
testCase.flag,
86-
subject.subjectKey,
87-
subject.subjectAttributes,
88-
testCase.defaultValue,
89-
obfuscated
90-
) || testCase.defaultValue; // Fallback to defaultValue if null
83+
const assignment = assignmentFn(
84+
testCase.flag,
85+
subject.subjectKey,
86+
subject.subjectAttributes,
87+
testCase.defaultValue,
88+
obfuscated
89+
);
9190
assignments.push({ subject: subject, assignment: assignment });
9291
}
9392
return assignments;

0 commit comments

Comments
 (0)