File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed
packages/private-apis/src/test Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -32,18 +32,7 @@ describe( '__dangerousOptInToUnstableAPIsOnlyForCoreModules', () => {
3232 / T h i s f e a t u r e i s o n l y f o r J a v a S c r i p t m o d u l e s s h i p p e d w i t h W o r d P r e s s c o r e /
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 ( / i s a l r e a d y r e g i s t e r e d / ) ;
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 ,
You can’t perform that action at this time.
0 commit comments