Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
fahchen committed Jan 9, 2025
1 parent 9debbe1 commit a4e6bca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 6 additions & 1 deletion test/api/fs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,11 @@ class Directory {
return this;
}

getLogger()?.debug(`name: ${name}, resut: ${JSON.stringify(rest)}`);

const directoryOrFile = this.#children.get(name);

getLogger()?.debug(`is directory: ${directoryOrFile instanceof Directory}`);
if (directoryOrFile instanceof Directory) {
return directoryOrFile.getChildRec(rest);
}
Expand Down Expand Up @@ -277,7 +280,9 @@ export function makeFS(): FSTest {

hasFile(path: string): boolean {
getLogger()?.debug(`path: ${path}`);
getLogger()?.debug(`normalizePath: ${Directory.normalizePath(path)}`);
getLogger()?.debug(
`normalizePath: ${JSON.stringify(Directory.normalizePath(path))}`,
);
const directoryOrFile = cwd.getChildRec(Directory.normalizePath(path));
getLogger()?.debug(
`directoryOrFile: ${directoryOrFile?.constructor.name} - ${
Expand Down
1 change: 0 additions & 1 deletion test/subcommands/push/action/push-functions_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ describe("functions", () => {
await func.files.readTextFile(`posts/entry.ts`),
"yrtne",
);
assert(false);
} catch (e) {
setupLogger("ERROR");

Expand Down

0 comments on commit a4e6bca

Please sign in to comment.