mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 23:56:07 +00:00
test: dedupe channel module mock read
This commit is contained in:
@@ -29,7 +29,7 @@ function createTempDir(): string {
|
||||
function requireCreateJitiCall(
|
||||
createJiti: ReturnType<typeof vi.fn>,
|
||||
): [string, { tryNative?: boolean }] {
|
||||
const call = createJiti.mock.calls.at(0);
|
||||
const call = createJiti.mock.calls[0];
|
||||
if (!call) {
|
||||
throw new Error("expected createJiti call");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user