| 95 | } |
| 96 | |
| 97 | async function testRemoteManagedSettings() { |
| 98 | console.log('\n--- Remote Managed Settings ---') |
| 99 | try { |
| 100 | const rms = await import('../src/services/remoteManagedSettings/index.js') |
| 101 | |
| 102 | // isEligibleForRemoteManagedSettings should return false without auth |
| 103 | const eligible = rms.isEligibleForRemoteManagedSettings() |
| 104 | pass('isEligibleForRemoteManagedSettings', `returns ${eligible} (expected false in test env)`) |
| 105 | |
| 106 | // waitForRemoteManagedSettingsToLoad should resolve immediately if not eligible |
| 107 | await rms.waitForRemoteManagedSettingsToLoad() |
| 108 | pass('waitForRemoteManagedSettingsToLoad', 'resolves immediately when not eligible') |
| 109 | } catch (err: any) { |
| 110 | fail('Remote managed settings', err.message) |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | async function testBootstrapData() { |
| 115 | console.log('\n--- Bootstrap Data ---') |