mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Use remote config value for Call Quality Survey threshold, upgrade RingRTC
This commit is contained in:
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user