@@ -51,19 +51,19 @@ test("scope-enum has expected modifier", async () => {
51
51
expect ( modifier ) . toBe ( "always" ) ;
52
52
} ) ;
53
53
54
- test ( "returns empty value for empty pnpm repository" , async ( ) => {
54
+ test ( "returns global scope for empty pnpm repository" , async ( ) => {
55
55
const { "scope-enum" : fn } = config . rules ;
56
56
const cwd = await npm . bootstrap ( "fixtures/empty" , __dirname ) ;
57
57
const [ , , value ] = await fn ( { cwd } ) ;
58
- expect ( value ) . toEqual ( [ ] ) ;
58
+ expect ( value ) . toEqual ( [ "global" ] ) ;
59
59
} ) ;
60
60
61
61
test ( "returns expected value for basic pnpm repository" , async ( ) => {
62
62
const { "scope-enum" : fn } = config . rules ;
63
63
const cwd = await npm . bootstrap ( "fixtures/basic" , __dirname ) ;
64
64
65
65
const [ , , value ] = await fn ( { cwd } ) ;
66
- expect ( value ) . toEqual ( [ "a" , "b" ] ) ;
66
+ expect ( value ) . toEqual ( [ "a" , "b" , "global" ] ) ;
67
67
} ) ;
68
68
69
69
test ( "returns expected value for scoped pnpm repository" , async ( ) => {
@@ -72,5 +72,5 @@ test("returns expected value for scoped pnpm repository", async () => {
72
72
73
73
const [ , , value ] = await fn ( { cwd } ) ;
74
74
75
- expect ( value ) . toEqual ( [ "a" , "b" ] ) ;
75
+ expect ( value ) . toEqual ( [ "a" , "b" , "global" ] ) ;
76
76
} ) ;
0 commit comments