import { describe, expect, it } from 'vitest';
import { FAVICON_PIXEL_SIZE, rasterizeBrandIcon } from '../../appearance/favicon-icon.js';
/** Valid 1×1 transparent PNG (same fixture as media-upload tests). */
const TINY_PNG = Buffer.from('iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg==', 'base64');
describe('rasterizeBrandIcon', () => {
    it('outputs a square PNG at the requested pixel size', async () => {
        const png = await rasterizeBrandIcon(TINY_PNG, FAVICON_PIXEL_SIZE);
        expect(png.length).toBeGreaterThan(0);
        expect(png.subarray(1, 4).toString()).toBe('PNG');
    });
});
//# sourceMappingURL=favicon-icon.test.js.map