Skip to content

Commit d118e30

Browse files
engine undefined rendering removed
1 parent e36c890 commit d118e30

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/engine/testing/engine.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ export class ABTestEngine {
776776
/*========================
777777
PRINT
778778
========================*/
779-
print = (name: string, value: unknown) => {
779+
print = (name: string, value: unknown = "") => {
780780
this.push({
781781
type: "print",
782782
name,
@@ -792,7 +792,7 @@ export class ABTestEngine {
792792
========================*/
793793
code = (
794794
name: string,
795-
value: unknown,
795+
value: unknown = "",
796796
language: TestResultCodePayloadInterface["language"] = "markdown",
797797
) => {
798798
this.push({
@@ -882,7 +882,7 @@ ${JSON.stringify(this.getSummary(), null, 2)}
882882
/*========================
883883
GROUPING
884884
========================*/
885-
group = (name: string, callback: () => void) => {
885+
group = (name: string, callback: () => void = () => {}) => {
886886
if (this.currentInsideGroup) return callback();
887887

888888
this.currentInsideGroup = true;

0 commit comments

Comments
 (0)