Skip to content

Commit 472e682

Browse files
committed
Fix test failures
1 parent 6b28c3c commit 472e682

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/ide/spies/SpyIDE.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
import { values } from "lodash";
1+
import { pickBy, values } from "lodash";
22
import { Graph } from "../../typings/Types";
33
import { Disposable, IDE } from "../ide.types";
44
import SpyConfiguration from "./SpyConfiguration";
55
import SpyMessages, { Message } from "./SpyMessages";
66

77
export interface SpyIDERecordedValues {
8-
configuration: undefined;
9-
messages: Message[] | undefined;
8+
messages?: Message[];
109
}
1110

1211
export default class SpyIDE implements IDE {
@@ -28,7 +27,9 @@ export default class SpyIDE implements IDE {
2827
messages: this.messages.getSpyValues(),
2928
};
3029

31-
return values(ret).every((value) => value == null) ? undefined : ret;
30+
return values(ret).every((value) => value == null)
31+
? undefined
32+
: pickBy(ret, (value) => value != null);
3233
}
3334
}
3435

0 commit comments

Comments
 (0)