mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-20 18:46:26 +00:00
test: dedupe security cli mock reads
This commit is contained in:
parent
597c69036d
commit
00a01d1a39
1 changed files with 4 additions and 4 deletions
|
|
@ -76,13 +76,13 @@ function primeDeepAuditConfig(sourceConfig = { gateway: { mode: "local" } }) {
|
|||
}
|
||||
|
||||
function lastSecretResolverOptions(): Record<string, unknown> | undefined {
|
||||
return resolveCommandSecretRefsViaGateway.mock.calls.at(-1)?.[0] as
|
||||
| Record<string, unknown>
|
||||
| undefined;
|
||||
const calls = resolveCommandSecretRefsViaGateway.mock.calls;
|
||||
return calls[calls.length - 1]?.[0] as Record<string, unknown> | undefined;
|
||||
}
|
||||
|
||||
function lastSecurityAuditOptions(): Record<string, unknown> | undefined {
|
||||
return runSecurityAudit.mock.calls.at(-1)?.[0] as Record<string, unknown> | undefined;
|
||||
const calls = runSecurityAudit.mock.calls;
|
||||
return calls[calls.length - 1]?.[0] as Record<string, unknown> | undefined;
|
||||
}
|
||||
|
||||
describe("security CLI", () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue