Use remote config value for Call Quality Survey threshold, upgrade RingRTC

This commit is contained in:
yash-signal
2025-12-18 07:56:04 -06:00
committed by GitHub
parent dffa3ed506
commit df0549d13b
8 changed files with 116 additions and 57 deletions

View File

@@ -8,6 +8,7 @@ import lodash from 'lodash';
import { normalizeAci } from '../util/normalizeAci.std.js';
import type { ConfigKeyType, ConfigListenerType } from '../RemoteConfig.dom.js';
import {
COUNTRY_CODE_FALLBACK,
getCountryCodeValue,
getBucketValue,
isCountryPpmCsvBucketEnabled,
@@ -95,6 +96,20 @@ describe('RemoteConfig', () => {
undefined
);
});
it('returns wildcard for COUNTRY_CODE_FALLBACK', () => {
assert.strictEqual(
getCountryCodeValue(COUNTRY_CODE_FALLBACK, '*:56,1:74', 'flagName'),
56
);
});
it('returns undefined for COUNTRY_CODE_FALLBACK when no wildcard', () => {
assert.strictEqual(
getCountryCodeValue(COUNTRY_CODE_FALLBACK, '1:74,2:56', 'flagName'),
undefined
);
});
});
describe('#getBucketValue', () => {