Procházet zdrojové kódy

fix(snapshot): pass refresh context in SDK snapshots

Tianyi Cui před 2 měsíci
rodič
revize
7503fa896f
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      examples/jsonrpc-agent/tests/sdk.snapshot.ts

+ 1 - 1
examples/jsonrpc-agent/tests/sdk.snapshot.ts

@@ -257,7 +257,7 @@ describe('TypeScript SDK snapshots over the jsonrpc runtime', () => {
           const existing = expectedContents[index]
           const file = files[index]
           if (existing === undefined || file === undefined) throw new Error(`no fixture for persisted log ${index}`)
-          const stable = stabilizeRefreshLog(log.content, existing, replacements)
+          const stable = stabilizeRefreshLog(log.content, existing, replacements, actualContext)
           await writeFile(file, stable)
           return stable
         }))