mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
d6f29c8afd
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/51938 Moves `packages/react-native-fantom` to `private/react-native-fantom`. Changelog: [Internal] Reviewed By: huntie Differential Revision: D76368959 fbshipit-source-id: 8d62f792229c10cd108dc849e8629d3174dc72c1
23 lines
691 B
JavaScript
23 lines
691 B
JavaScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @fantom_flags commonTestFlag:true jsOnlyTestFlag:true
|
|
* @flow strict-local
|
|
* @format
|
|
*/
|
|
|
|
import * as ReactNativeFeatureFlags from 'react-native/src/private/featureflags/ReactNativeFeatureFlags';
|
|
|
|
describe('FantomFeatureFlags', () => {
|
|
it('allows overridding common feature flags', () => {
|
|
expect(ReactNativeFeatureFlags.commonTestFlag()).toBe(true);
|
|
});
|
|
|
|
it('allows overridding JS-only feature flags', () => {
|
|
expect(ReactNativeFeatureFlags.jsOnlyTestFlag()).toBe(true);
|
|
});
|
|
});
|