Files
self/app/tests/build/ios/infoPlist.test.ts
Justin Hernandez 551067a48e Reorganize mobile app /src and /tests folders (#1357)
* Refactor mobile app utilities into new modules

* prettier

* update lock, feedback from codex

* fix path

* keep some files in utils

* fix tests

* update paths

* remove old docs

* cr feedback

* flatten inefficient paths

* better structure

* update test folder structure

* migrate images

* fix import

* fix Sentry path

* update ignore

* save wip migration

* more updates

* standardize component names

* rename assets

* fix linting

* add barrel exports. final refactor commit

* fix formatting

* fix nav bar

* reduce bundle size

* remove dupe license

* fix test

* fix merge issues

* add refactor doc so we can track what was imporoved

* cr feedback

* feedback
2025-11-20 17:56:44 -03:00

37 lines
1.2 KiB
TypeScript

// SPDX-FileCopyrightText: 2025 Social Connect Labs, Inc.
// SPDX-License-Identifier: BUSL-1.1
// NOTE: Converts to Apache-2.0 on 2029-06-11 per LICENSE.
/**
* @jest-environment node
*/
import { readFileSync } from 'fs';
import { join } from 'path';
describe('iOS Info.plist Configuration', () => {
const plistPath = join(__dirname, '../../../ios/OpenPassport/Info.plist');
let plistContent: string;
beforeAll(() => {
plistContent = readFileSync(plistPath, 'utf8');
});
it('contains the proofofpassport URL scheme', () => {
const regex =
/<key>CFBundleURLSchemes<\/key>\s*<array>\s*<string>proofofpassport<\/string>/s;
expect(plistContent).toMatch(regex);
});
it('has NFC and camera usage descriptions', () => {
expect(plistContent).toContain('<key>NFCReaderUsageDescription</key>');
expect(plistContent).toContain('<key>NSCameraUsageDescription</key>');
});
it('lists required fonts', () => {
expect(plistContent).toContain('<string>Advercase-Regular.otf</string>');
expect(plistContent).toContain('<string>DINOT-Bold.otf</string>');
expect(plistContent).toContain('<string>DINOT-Medium.otf</string>');
});
});