fix(continuity): ignore AppleDouble lease sidecars
This commit is contained in:
parent
0756ec4258
commit
f48ca13295
3 changed files with 15 additions and 4 deletions
|
|
@ -4,6 +4,7 @@ import os from "node:os";
|
|||
import path from "node:path";
|
||||
import test from "node:test";
|
||||
import {
|
||||
isJsonRecordName,
|
||||
normalizeBranch,
|
||||
normalizeCodeChannelRepository,
|
||||
normalizeReceipt,
|
||||
|
|
@ -76,3 +77,9 @@ test("cache deletion scope accepts only exact allowlisted descendants", () => {
|
|||
test("embedded finalizer self-test passes", () => {
|
||||
assert.deepEqual(selfTest(), { result: "PASS_100" });
|
||||
});
|
||||
|
||||
test("macOS AppleDouble sidecars are never parsed as JSON records", () => {
|
||||
assert.equal(isJsonRecordName("lease.json"), true);
|
||||
assert.equal(isJsonRecordName("._lease.json"), false);
|
||||
assert.equal(isJsonRecordName("lease.txt"), false);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue