....
This commit is contained in:
parent
3dab48f58b
commit
c869f0a880
1 changed files with 461 additions and 578 deletions
|
|
@ -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 () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue