We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c78f749 commit 3726a4dCopy full SHA for 3726a4d
1 file changed
src/runner.ts
@@ -1,4 +1,5 @@
1
import { Exercise } from "./exercise.ts";
2
+import { readFile } from "node:fs/promises";
3
4
interface RunResult {
5
ok: boolean;
@@ -26,7 +27,7 @@ const check = async (exercise: Exercise): Promise<RunResult> => {
26
27
};
28
29
const isDone = async (exercise: Exercise): Promise<boolean> => {
- return !(await Deno.readTextFile(exercise.path)).includes("// I AM NOT DONE");
30
+ return !(await readFile(exercise.path, "utf-8")).includes("// I AM NOT DONE");
31
32
33
export { check, isDone };
0 commit comments