mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 02:48:50 +00:00
test: toRun matcher should check output if optionalStdout is empty string
This commit is contained in:
@@ -371,7 +371,7 @@ expect.extend({
|
||||
};
|
||||
}
|
||||
|
||||
if (optionalStdout) {
|
||||
if (optionalStdout != null) {
|
||||
return {
|
||||
pass: result.stdout.toString("utf-8") === optionalStdout,
|
||||
message: () =>
|
||||
|
||||
Reference in New Issue
Block a user