Skip to content

Commit eca203a

Browse files
committed
Fix gates
1 parent f8adb9e commit eca203a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/react-dom/src/__tests__/ReactErrorBoundaries-test.internal.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -799,8 +799,7 @@ describe('ReactErrorBoundaries', () => {
799799
expect(container.firstChild.textContent).toBe('Caught an error: Hello.');
800800
});
801801

802-
// @gate !disableModulePatternComponents
803-
// @gate !disableLegacyContext
802+
// @gate !(disableModulePatternComponents && disableLegacyContext)
804803
it('renders an error state if module-style context provider throws in componentWillMount', () => {
805804
function BrokenComponentWillMountWithContext() {
806805
return {

packages/react-reconciler/src/__tests__/ReactIncrementalErrorHandling-test.internal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1756,7 +1756,7 @@ describe('ReactIncrementalErrorHandling', () => {
17561756
);
17571757
});
17581758

1759-
// @gate !disableModulePatternComponents && !disableLegacyContext
1759+
// @gate !(disableModulePatternComponents && disableLegacyContext)
17601760
it('handles error thrown inside getDerivedStateFromProps of a module-style context provider', async () => {
17611761
function Provider() {
17621762
return {

0 commit comments

Comments
 (0)