mirror of
https://github.com/morluto/rea.git
synced 2026-10-26 17:35:11 +00:00
fix(tests): accept retained module aliases in node views
Content-identical assets share a node whose observations are ordered by identity. Accept either retained display path when selecting that node, while retaining exact per-path reference and observation assertions.
This commit is contained in:
1 parent
4c680d099c
commit
75e0d620bf
1 file changed
+2
-1
@@ -70,7 +70,8 @@ cliTest(
|
||||
kind: "item",
|
||||
item: {
|
||||
node_id: sharedNodeId,
|
||||
path: "a.js",
|
||||
// Observations are ordered by identity, not by their path spelling.
|
||||
path: expect.stringMatching(/^[ab]\.js$/u),
|
||||
observations: expect.arrayContaining([
|
||||
expect.objectContaining({
|
||||
properties: expect.objectContaining({ path: "a.js" }),
|
||||
|
||||
Reference in new issue
Block a user