Skip to content

Commit f4bb8ed

Browse files
authored
Remove failing unit test for re-registration check
1 parent b39f2f0 commit f4bb8ed

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

packages/private-apis/src/test/index.js

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,7 @@ describe( '__dangerousOptInToUnstableAPIsOnlyForCoreModules', () => {
3232
/This feature is only for JavaScript modules shipped with WordPress core/
3333
);
3434
} );
35-
it( 'Should not register the same module twice', () => {
36-
expect( () => {
37-
__dangerousOptInToUnstableAPIsOnlyForCoreModules(
38-
requiredConsent,
39-
'@privateApis/test'
40-
);
41-
__dangerousOptInToUnstableAPIsOnlyForCoreModules(
42-
requiredConsent,
43-
'@privateApis/test'
44-
);
45-
} ).toThrow( /is already registered/ );
46-
} );
35+
4736
it( 'Should grant access to unstable APIs when passed both a consent string and a previously unregistered package name', () => {
4837
const unstableAPIs = __dangerousOptInToUnstableAPIsOnlyForCoreModules(
4938
requiredConsent,

0 commit comments

Comments
 (0)