Skip to content

Commit

Permalink
chore: fix mock example
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Apr 13, 2023
1 parent dfb976f commit 4dadfb3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
};
}
}

Expand Down

0 comments on commit 4dadfb3

Please sign in to comment.