Skip to content

Commit b311c1c

Browse files
fix: predicate would return undefined if arguments_ was undefined
1 parent 8c38189 commit b311c1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tests/clippy.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ describe("clippy", () => {
4343
if (
4444
(arguments_ ?? []).length > 0 &&
4545
expected.every((c) => {
46-
return arguments_?.includes(c);
46+
return arguments_?.includes(c) ?? false;
4747
})
4848
) {
4949
return Promise.resolve(101);
@@ -136,7 +136,7 @@ describe("clippy", () => {
136136
if (
137137
(arguments_ ?? []).length > 0 &&
138138
expected.every((c) => {
139-
return arguments_?.includes(c);
139+
return arguments_?.includes(c) ?? false;
140140
})
141141
) {
142142
const data: CompilerMessage = {

0 commit comments

Comments
 (0)