Skip to content
This repository was archived by the owner on Dec 30, 2023. It is now read-only.

Commit d7612d9

Browse files
committed
fix(packages/test): 🐛 Missing undefined case
1 parent f46b0fd commit d7612d9

File tree

2 files changed

+407
-386
lines changed

2 files changed

+407
-386
lines changed

packages/test/source/unit/unit.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ function getFormattedPrimitiveValue(value: unknown): string {
7070
case "number": return `${value}`;
7171
case "string": return `"${value}"`;
7272
case "symbol": return `"${value.toString()}"`;
73+
case "undefined": return ``;
7374
default: throw new TypeError(`The value is non-primitive.`);
7475
/* eslint-enable unicorn/switch-case-braces */
7576
}

0 commit comments

Comments
 (0)