Put group calling behind a remote feature flag
This commit is contained in:
parent
23fed9ce63
commit
a2f285d243
11 changed files with 51 additions and 14 deletions
22
ts/test-both/util/version_test.ts
Normal file
22
ts/test-both/util/version_test.ts
Normal file
|
@ -0,0 +1,22 @@
|
|||
// Copyright 2020 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { assert } from 'chai';
|
||||
|
||||
import { isBeta } from '../../util/version';
|
||||
|
||||
describe('version utilities', () => {
|
||||
describe('isBeta', () => {
|
||||
it('returns false for non-beta version strings', () => {
|
||||
assert.isFalse(isBeta('1.2.3'));
|
||||
assert.isFalse(isBeta('1.2.3-alpha'));
|
||||
assert.isFalse(isBeta('1.2.3-alpha.1'));
|
||||
assert.isFalse(isBeta('1.2.3-rc.1'));
|
||||
});
|
||||
|
||||
it('returns true for beta version strings', () => {
|
||||
assert.isTrue(isBeta('1.2.3-beta'));
|
||||
assert.isTrue(isBeta('1.2.3-beta.1'));
|
||||
});
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue