MCPcopy Create free account
hub / github.com/garrytan/gstack / createTestPng

Function createTestPng

design/test/gallery.test.ts:12–18  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

10let tmpDir: string;
11
12function createTestPng(filePath: string): void {
13 const png = Buffer.from(
14 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/58BAwAI/AL+hc2rNAAAAABJRU5ErkJggg==',
15 'base64'
16 );
17 fs.writeFileSync(filePath, png);
18}
19
20beforeAll(() => {
21 tmpDir = '/tmp/gallery-test-' + Date.now();

Callers 1

gallery.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected