MCPcopy
hub / github.com/browserless/browserless / readFile

Function readFile

src/monitoring.spec.ts:57–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55describe('readWithTimeout', () => {
56 it('resolves to file contents when readFile resolves in time', async () => {
57 const readFile: Parameters<typeof readWithTimeout>[1] = async () => 'hello';
58 const result = await readWithTimeout('/fake', readFile, 100);
59 expect(result).to.equal('hello');
60 });

Callers 6

startMethod · 0.85
readMethod · 0.85
readWithTimeoutFunction · 0.85
browserless.jsFile · 0.85
createFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected