Add new release line for testing

This commit is contained in:
Fedor Indutny
2024-11-20 19:14:21 -08:00
committed by GitHub
parent 70dd062753
commit 34cc87e8a8
17 changed files with 199 additions and 43 deletions

View File

@@ -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));
});
});