style(ios): apply prettier formatting to TRU-92 bundle ID guard test
The new tests/unit/tru-92-ios-bundle-id-guard.spec.js was added without running `npm run format:tests`, so the format-tests CI job failed with `prettier --check`. The trailing-comma style in the inline PNG buffer array and one of the trailing semicolons triggered the check. This is a pure formatting fix produced by `prettier --write` and does not change the test logic.
This commit is contained in:
@@ -70,14 +70,73 @@ function buildFixture({ xcodeBundleId, includeDebugId = true }) {
|
|||||||
// Build a tiny valid PNG with deterministic bytes that won't match the
|
// Build a tiny valid PNG with deterministic bytes that won't match the
|
||||||
// known Capacitor defaults. The validator only checks the SHA-256.
|
// known Capacitor defaults. The validator only checks the SHA-256.
|
||||||
const png = Buffer.from([
|
const png = Buffer.from([
|
||||||
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, // PNG signature
|
0x89,
|
||||||
0x00, 0x00, 0x00, 0x0d, 0x49, 0x48, 0x44, 0x52, // IHDR length + tag
|
0x50,
|
||||||
0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, // 1x1
|
0x4e,
|
||||||
0x08, 0x06, 0x00, 0x00, 0x00, 0x1f, 0x15, 0xc4, 0x89, // 8-bit RGBA
|
0x47,
|
||||||
0x00, 0x00, 0x00, 0x0d, 0x49, 0x44, 0x41, 0x54, // IDAT length + tag
|
0x0d,
|
||||||
0x78, 0x9c, 0x62, 0x00, 0x01, 0x00, 0x00, 0x05, 0x00, 0x01, 0x0d, 0x0a, 0x2d, 0xb4,
|
0x0a,
|
||||||
0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44, // IEND length + tag
|
0x1a,
|
||||||
0xae, 0x42, 0x60, 0x82,
|
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(iconDir, "AppIcon-512@2x.png"), png);
|
||||||
writeFileSync(join(splashDir, "splash-2732x2732.png"), png);
|
writeFileSync(join(splashDir, "splash-2732x2732.png"), png);
|
||||||
|
|||||||
Reference in New Issue
Block a user