MCPcopy Create free account
hub / github.com/dwgx/WindsurfAPI / addTestAccount

Function addTestAccount

test/rate-limit.test.js:19–23  ·  view source on GitHub ↗
(label = 'test-account')

Source from the content-addressed store, hash-verified

17const originalExperimental = getExperimental();
18
19function addTestAccount(label = 'test-account') {
20 const account = addAccountByKey(`test-key-${Date.now()}-${Math.random().toString(36).slice(2)}`, label);
21 createdAccountIds.push(account.id);
22 return account;
23}
24
25afterEach(() => {
26 setExperimental(originalExperimental);

Callers 1

rate-limit.test.jsFile · 0.70

Calls 2

addAccountByKeyFunction · 0.90
pushMethod · 0.80

Tested by

no test coverage detected