MCPcopy
hub / github.com/angular/angularfire / prepareAuditTrail

Function prepareAuditTrail

src/compat/database/list/audit-trail.spec.ts:36–45  ·  view source on GitHub ↗
(opts: { events?: ChildEvent[], skipnumber: number } = { skipnumber: 0 })

Source from the content-addressed store, hash-verified

34 });
35
36 function prepareAuditTrail(opts: { events?: ChildEvent[], skipnumber: number } = { skipnumber: 0 }) {
37 const { events, skipnumber } = opts;
38 const aref = createRef(rando());
39 aref.set(batch);
40 const changes = auditTrail(aref, events);
41 return {
42 changes: changes.pipe(skip(skipnumber)),
43 ref: aref
44 };
45 }
46
47 it('should listen to all events by default', (done) => {
48

Callers 1

Calls 3

randoFunction · 0.90
auditTrailFunction · 0.90
setMethod · 0.65

Tested by

no test coverage detected