MCPcopy
hub / github.com/tinyplex/tinybase / expectChanges

Function expectChanges

test/unit/common/expect.ts:15–24  ·  view source on GitHub ↗
(
  listener: Listener,
  id: Id,
  ...expectedChanges: any[]
)

Source from the content-addressed store, hash-verified

13}
14
15export const expectChanges = (
16 listener: Listener,
17 id: Id,
18 ...expectedChanges: any[]
19): void => {
20 const log: any[] = listener.logs[id];
21 expectedChanges.forEach((expectedChange) =>
22 expect(JSON.stringify(log.shift())).toEqual(JSON.stringify(expectedChange)),
23 );
24};
25
26export const expectChangesNoJson = (
27 listener: Listener,

Callers 10

indexes.test.tsFile · 0.90
setContentFunction · 0.90
queries.test.tsFile · 0.90
metrics.test.tsFile · 0.90

Calls

no outgoing calls

Tested by 1

setContentFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…