1
1
import { beforeEach , describe , expect , test , vi } from 'vitest' ;
2
- import { initRepoBranchesSettings } from './repo-settings-branches.ts' ;
2
+ import { initRepoSettingsBranches } from './repo-settings-branches.ts' ;
3
3
import { POST } from '../modules/fetch.ts' ;
4
4
import { createSortable } from '../modules/sortable.ts' ;
5
5
@@ -31,7 +31,7 @@ describe('Repository Branch Settings', () => {
31
31
} ) ;
32
32
33
33
test ( 'should initialize sortable for protected branches list' , ( ) => {
34
- initRepoBranchesSettings ( ) ;
34
+ initRepoSettingsBranches ( ) ;
35
35
36
36
expect ( createSortable ) . toHaveBeenCalledWith (
37
37
document . querySelector ( '#protected-branches-list' ) ,
@@ -45,7 +45,7 @@ describe('Repository Branch Settings', () => {
45
45
test ( 'should not initialize if protected branches list is not present' , ( ) => {
46
46
document . body . innerHTML = '' ;
47
47
48
- initRepoBranchesSettings ( ) ;
48
+ initRepoSettingsBranches ( ) ;
49
49
50
50
expect ( createSortable ) . not . toHaveBeenCalled ( ) ;
51
51
} ) ;
@@ -59,7 +59,7 @@ describe('Repository Branch Settings', () => {
59
59
return { destroy : vi . fn ( ) } ;
60
60
} ) ;
61
61
62
- initRepoBranchesSettings ( ) ;
62
+ initRepoSettingsBranches ( ) ;
63
63
64
64
expect ( POST ) . toHaveBeenCalledWith (
65
65
'some/repo/branches/priority' ,
0 commit comments