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

Function randomName

src/compat/firestore/utils.spec.ts:12–12  ·  view source on GitHub ↗
(firestore)

Source from the content-addressed store, hash-verified

10export const FAKE_STOCK_DATA = { name: 'FAKE', price: 1 };
11
12export const randomName = (firestore): string => firestore.collection('a').doc().id;
13
14export const createRandomStocks = async (
15 firestore: firebase.firestore.Firestore,

Callers 6

collectionHarnessFunction · 0.90
collection.spec.tsFile · 0.90
document.spec.tsFile · 0.90
collectionHarnessFunction · 0.90
createRandomStocksFunction · 0.85

Calls 2

docMethod · 0.45
collectionMethod · 0.45

Tested by

no test coverage detected