Skip to content
Commits on Source (3)
......@@ -24,6 +24,7 @@ import UserModel from '../../src/channel/UserModel';
import Touchable from '../../src/common/components/Touchable';
import session from '../../src/common/services/session.service';
import ChannelStore from '../../src/channel/ChannelStore';
import featuresService from '../../src/common/services/features.service';
jest.mock('../../src/common/helpers/abortableFetch');
jest.mock('../../src/channel/UserModel');
......@@ -45,6 +46,8 @@ describe('Channel screen component', () => {
let store, screen, entities, channel, navigation, activityResponse, user;
featuresService.features['es-feeds'] = true;
beforeEach(() => {
let activityResponse = activitiesServiceFaker().load(1);
......
......@@ -46,8 +46,7 @@ class FeaturesService {
* @param {string} feature
*/
has(feature) {
return (typeof this.features[feature] === 'undefined') ||
this.features[feature] === true ||
return this.features[feature] === true ||
(this.features[feature] === 'canary' && sessionService.getUser().canary);
}
}
......