@@ -51,19 +51,19 @@ test("scope-enum has expected modifier", async () => {
5151 expect ( modifier ) . toBe ( "always" ) ;
5252} ) ;
5353
54- test ( "returns empty value for empty pnpm repository" , async ( ) => {
54+ test ( "returns global scope for empty pnpm repository" , async ( ) => {
5555 const { "scope-enum" : fn } = config . rules ;
5656 const cwd = await npm . bootstrap ( "fixtures/empty" , __dirname ) ;
5757 const [ , , value ] = await fn ( { cwd } ) ;
58- expect ( value ) . toEqual ( [ ] ) ;
58+ expect ( value ) . toEqual ( [ "global" ] ) ;
5959} ) ;
6060
6161test ( "returns expected value for basic pnpm repository" , async ( ) => {
6262 const { "scope-enum" : fn } = config . rules ;
6363 const cwd = await npm . bootstrap ( "fixtures/basic" , __dirname ) ;
6464
6565 const [ , , value ] = await fn ( { cwd } ) ;
66- expect ( value ) . toEqual ( [ "a" , "b" ] ) ;
66+ expect ( value ) . toEqual ( [ "a" , "b" , "global" ] ) ;
6767} ) ;
6868
6969test ( "returns expected value for scoped pnpm repository" , async ( ) => {
@@ -72,5 +72,5 @@ test("returns expected value for scoped pnpm repository", async () => {
7272
7373 const [ , , value ] = await fn ( { cwd } ) ;
7474
75- expect ( value ) . toEqual ( [ "a" , "b" ] ) ;
75+ expect ( value ) . toEqual ( [ "a" , "b" , "global" ] ) ;
7676} ) ;
0 commit comments