fix: preserve optional unknown filters
This commit is contained in:
parent
2bea40571d
commit
db1efef9d2
File diff suppressed because one or more lines are too long
|
|
@ -270,11 +270,13 @@ export abstract class BinarySessionRecords {
|
|||
return this.#evidence.updateUnknown(input, evidence);
|
||||
}
|
||||
|
||||
listUnknowns(filters: {
|
||||
readonly status?: UnknownStatus;
|
||||
readonly severity?: ResidualUnknown["severity"];
|
||||
readonly domain?: string;
|
||||
}): ResidualUnknown[] {
|
||||
listUnknowns(
|
||||
filters: {
|
||||
readonly status?: UnknownStatus;
|
||||
readonly severity?: ResidualUnknown["severity"];
|
||||
readonly domain?: string;
|
||||
} = {},
|
||||
): ResidualUnknown[] {
|
||||
return this.#evidence.listUnknowns(filters);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@ describe("binary session", () => {
|
|||
const [first] = await targets();
|
||||
const session = new BinarySession(cacheProvider([]));
|
||||
expect((await session.open(first)).ok).toBe(true);
|
||||
expect(session.listUnknowns()).toEqual([]);
|
||||
const identity = session.providerIdentity();
|
||||
Reflect.set(identity, "id", "forged");
|
||||
expect(session.providerIdentity().id).toBe("fixture");
|
||||
|
|
|
|||
Loading…
Reference in New Issue