@@ -16,7 +16,7 @@ beforeEach(async (ctx) => {
1616describe . sequential ( "publish" , ( ) => {
1717 it ( "should success for new package" , async ( ctx ) => {
1818 const p = fixture ( "publish_new_success" ) ;
19- const data = await publish ( p , ctx . registry . endpoint , "fake_token" ) ;
19+ const data = await publish ( p , ctx . registry . endpoint , "fake_token" , "public" ) ;
2020 expect ( data . version ) . toBe ( "0.0.1" ) ;
2121
2222 const data2 = ctx . registry . getData ( "publish_success" , "0.0.1" ) ;
@@ -31,13 +31,13 @@ describe.sequential("publish", () => {
3131 it ( "should success for update package" , async ( ctx ) => {
3232 {
3333 const p = fixture ( "publish_new_success" ) ;
34- const data = await publish ( p , ctx . registry . endpoint , "fake_token" ) ;
34+ const data = await publish ( p , ctx . registry . endpoint , "fake_token" , "public" ) ;
3535 expect ( data . version ) . toBe ( "0.0.1" ) ;
3636 }
3737
3838 {
3939 const p = fixture ( "publish_update_success" ) ;
40- const data = await publish ( p , ctx . registry . endpoint , "fake_token" ) ;
40+ const data = await publish ( p , ctx . registry . endpoint , "fake_token" , "public" ) ;
4141 expect ( data . version ) . toBe ( "0.0.2" ) ;
4242 }
4343
@@ -54,7 +54,7 @@ describe.sequential("publish", () => {
5454 const p = fixture ( "publish_depend_itself" ) ;
5555
5656 await expect (
57- publish ( p , ctx . registry . endpoint , "fake_token" ) ,
57+ publish ( p , ctx . registry . endpoint , "fake_token" , "public" ) ,
5858 ) . rejects . toThrow ( ERR_OOPM_DEPEND_ITSELF ) ;
5959 } ) ;
6060} ) ;
0 commit comments