M17–M19: #133–#137 (Kommentare inline, Statuszeile, Transklusion, Excalidraw, Checkbox-Fix) #138
@ -277,10 +277,12 @@ describe.skipIf(!hasTestDb)('LinksService.pondGraph (db, issue #111)', () => {
|
|||||||
{ from: a, to: secret },
|
{ from: a, to: secret },
|
||||||
].sort((x, y) => x.to.localeCompare(y.to)),
|
].sort((x, y) => x.to.localeCompare(y.to)),
|
||||||
);
|
);
|
||||||
expect(graph.phantoms.map((p) => p.targetSlug).sort()).toEqual([
|
// Sort BOTH sides: phantom order is not guaranteed, and the two slugs share
|
||||||
`ghost-${suffix}`,
|
// the random suffix so their sort order flips on ~1/5 of suffixes (the
|
||||||
`ghost-secret-${suffix}`,
|
// expected array was previously left unsorted — a latent flake).
|
||||||
]);
|
expect(graph.phantoms.map((p) => p.targetSlug).sort()).toEqual(
|
||||||
|
[`ghost-${suffix}`, `ghost-secret-${suffix}`].sort(),
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('slices every collection to the reader — no hidden page leaks anywhere', async () => {
|
it('slices every collection to the reader — no hidden page leaks anywhere', async () => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user