MCPcopy Create free account
hub / github.com/dfinity/orbit / resetCounter

Function resetCounter

cli/src/audit/checks/fixtures.ts:16–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14const nextId = (): string => `id-${++counter}`;
15
16export const resetCounter = (): void => {
17 counter = 0;
18};
19
20export const makeUser = (overrides: Partial<User> = {}): User => ({
21 id: overrides.id ?? nextId(),

Calls

no outgoing calls

Tested by

no test coverage detected