Skip to content

Commit 4dadfb3

Browse files
committed
chore: fix mock example
1 parent dfb976f commit 4dadfb3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/mock.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ import { consola } from "./utils";
22

33
function mockFn(type) {
44
if (type === "info") {
5-
return () => this.log("INFO INFO INFO");
5+
return function () {
6+
this.log("INFO INFO INFO");
7+
};
68
}
79
}
810

0 commit comments

Comments
 (0)