more misc

This commit is contained in:
fyears
2021-11-28 12:18:44 +08:00
parent 0d75ea92b1
commit 2eb1545f9d
2 changed files with 13 additions and 3 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ describe("Misc: get folder levels", () => {
expect(misc.getFolderLevels(item3)).to.deep.equal(res3);
});
it("should treat path starting with / correctly", ()=> {
it("should treat path starting with / correctly", () => {
const item = "/xxx/yyy/zzz.md";
const res = ["/xxx", "/xxx/yyy"];
expect(misc.getFolderLevels(item)).to.deep.equal(res);