mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-01 22:01:49 +01:00
Add new release line for testing
This commit is contained in:
@@ -7,7 +7,7 @@ import type { StateType } from '../../../state/reducer';
|
||||
import type { UserStateType } from '../../../state/ducks/user';
|
||||
import { getEmptyState } from '../../../state/ducks/user';
|
||||
|
||||
import { getIsAlpha, getIsBeta } from '../../../state/selectors/user';
|
||||
import { getIsNightly, getIsBeta } from '../../../state/selectors/user';
|
||||
|
||||
describe('both/state/selectors/user', () => {
|
||||
function getRootState(
|
||||
@@ -22,20 +22,20 @@ describe('both/state/selectors/user', () => {
|
||||
} as any;
|
||||
}
|
||||
|
||||
describe('#getIsAlpha', () => {
|
||||
describe('#getIsNightly', () => {
|
||||
it('returns false for beta', () => {
|
||||
const state = getRootState({ version: '1.23.4-beta.5' });
|
||||
assert.isFalse(getIsAlpha(state));
|
||||
assert.isFalse(getIsNightly(state));
|
||||
});
|
||||
|
||||
it('returns false for production', () => {
|
||||
const state = getRootState({ version: '1.23.4' });
|
||||
assert.isFalse(getIsAlpha(state));
|
||||
assert.isFalse(getIsNightly(state));
|
||||
});
|
||||
|
||||
it('returns true for alpha', () => {
|
||||
const state = getRootState({ version: '1.23.4-alpha.987' });
|
||||
assert.isTrue(getIsAlpha(state));
|
||||
assert.isTrue(getIsNightly(state));
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user