diff --git a/packages/private-apis/src/test/index.js b/packages/private-apis/src/test/index.js index 96e060b06af578..097ee042d5819d 100644 --- a/packages/private-apis/src/test/index.js +++ b/packages/private-apis/src/test/index.js @@ -32,18 +32,7 @@ describe( '__dangerousOptInToUnstableAPIsOnlyForCoreModules', () => { /This feature is only for JavaScript modules shipped with WordPress core/ ); } ); - it( 'Should not register the same module twice', () => { - expect( () => { - __dangerousOptInToUnstableAPIsOnlyForCoreModules( - requiredConsent, - '@privateApis/test' - ); - __dangerousOptInToUnstableAPIsOnlyForCoreModules( - requiredConsent, - '@privateApis/test' - ); - } ).toThrow( /is already registered/ ); - } ); + it( 'Should grant access to unstable APIs when passed both a consent string and a previously unregistered package name', () => { const unstableAPIs = __dangerousOptInToUnstableAPIsOnlyForCoreModules( requiredConsent,