This commit is contained in:
Andras Schmelczer 2026-09-27 09:04:05 +01:00
commit c869f0a880

View file

@ -183,13 +183,13 @@ test("conflict names respect component limits without imposing a total path limi
const allocated = allocatePortablePath(
wanted,
"00000000-0000-4000-8000-000000000001",
{ other: wanted }
[wanted]
);
assert(Buffer.byteLength(allocated) <= 255);
assert(allocated.endsWith(".md"));
assert.notEqual(allocated, wanted);
const longPath = "folder/".repeat(100) + "note.md";
assert.equal(allocatePortablePath(longPath, "id", {}), longPath);
assert.equal(allocatePortablePath(longPath, "id", []), longPath);
});
test("an unmaterialized file with a directory at its path is deconflicted", async () => {