diff --git a/examples/mock.ts b/examples/mock.ts index 51a9a465..4392030c 100755 --- a/examples/mock.ts +++ b/examples/mock.ts @@ -2,7 +2,9 @@ import { consola } from "./utils"; function mockFn(type) { if (type === "info") { - return () => this.log("INFO INFO INFO"); + return function () { + this.log("INFO INFO INFO"); + }; } }