diff --git a/tests/unit/tru-92-ios-bundle-id-guard.spec.js b/tests/unit/tru-92-ios-bundle-id-guard.spec.js index f266f775..12de0939 100644 --- a/tests/unit/tru-92-ios-bundle-id-guard.spec.js +++ b/tests/unit/tru-92-ios-bundle-id-guard.spec.js @@ -70,14 +70,73 @@ function buildFixture({ xcodeBundleId, includeDebugId = true }) { // Build a tiny valid PNG with deterministic bytes that won't match the // known Capacitor defaults. The validator only checks the SHA-256. const png = Buffer.from([ - 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, // PNG signature - 0x00, 0x00, 0x00, 0x0d, 0x49, 0x48, 0x44, 0x52, // IHDR length + tag - 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, // 1x1 - 0x08, 0x06, 0x00, 0x00, 0x00, 0x1f, 0x15, 0xc4, 0x89, // 8-bit RGBA - 0x00, 0x00, 0x00, 0x0d, 0x49, 0x44, 0x41, 0x54, // IDAT length + tag - 0x78, 0x9c, 0x62, 0x00, 0x01, 0x00, 0x00, 0x05, 0x00, 0x01, 0x0d, 0x0a, 0x2d, 0xb4, - 0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44, // IEND length + tag - 0xae, 0x42, 0x60, 0x82, + 0x89, + 0x50, + 0x4e, + 0x47, + 0x0d, + 0x0a, + 0x1a, + 0x0a, // PNG signature + 0x00, + 0x00, + 0x00, + 0x0d, + 0x49, + 0x48, + 0x44, + 0x52, // IHDR length + tag + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, // 1x1 + 0x08, + 0x06, + 0x00, + 0x00, + 0x00, + 0x1f, + 0x15, + 0xc4, + 0x89, // 8-bit RGBA + 0x00, + 0x00, + 0x00, + 0x0d, + 0x49, + 0x44, + 0x41, + 0x54, // IDAT length + tag + 0x78, + 0x9c, + 0x62, + 0x00, + 0x01, + 0x00, + 0x00, + 0x05, + 0x00, + 0x01, + 0x0d, + 0x0a, + 0x2d, + 0xb4, + 0x00, + 0x00, + 0x00, + 0x00, + 0x49, + 0x45, + 0x4e, + 0x44, // IEND length + tag + 0xae, + 0x42, + 0x60, + 0x82, ]); writeFileSync(join(iconDir, "AppIcon-512@2x.png"), png); writeFileSync(join(splashDir, "splash-2732x2732.png"), png);