mirror of
https://github.com/morluto/rea.git
synced 2026-11-14 10:43:30 +00:00
test: consolidate JavaScript and provider fixture coverage
This commit is contained in:
1 parent
439c197c3f
commit
3c4be703cd
16 files changed
+23
-223
No files matched your search
@@ -491,32 +491,6 @@ describe("historical source graph validation", () => {
|
||||
],
|
||||
}),
|
||||
).toThrow(/normalized and inventoried/u);
|
||||
expect(() =>
|
||||
createHistoricalSourceGraph({
|
||||
...graphInput(),
|
||||
inventory_state: "partial",
|
||||
entries: graphInput().entries.map((entry) =>
|
||||
entry.kind === "symlink"
|
||||
? { ...entry, target: "/etc/passwd", target_state: "external" }
|
||||
: entry,
|
||||
),
|
||||
}),
|
||||
).not.toThrow();
|
||||
expect(() =>
|
||||
createHistoricalSourceGraph({
|
||||
...graphInput(),
|
||||
inventory_state: "partial",
|
||||
entries: graphInput().entries.map((entry) =>
|
||||
entry.kind === "symlink"
|
||||
? {
|
||||
...entry,
|
||||
target: "<outside-root>",
|
||||
target_state: "external",
|
||||
}
|
||||
: entry,
|
||||
),
|
||||
}),
|
||||
).toThrow(/target path does not match/u);
|
||||
expect(() =>
|
||||
createHistoricalSourceGraph({
|
||||
...graphInput(),
|
||||
|
||||
Reference in new issue
Block a user