11import { beforeEach , describe , expect , test , vi } from 'vitest' ;
2- import { initRepoBranchesSettings } from './repo-settings-branches.ts' ;
2+ import { initRepoSettingsBranches } from './repo-settings-branches.ts' ;
33import { POST } from '../modules/fetch.ts' ;
44import { createSortable } from '../modules/sortable.ts' ;
55
@@ -31,7 +31,7 @@ describe('Repository Branch Settings', () => {
3131 } ) ;
3232
3333 test ( 'should initialize sortable for protected branches list' , ( ) => {
34- initRepoBranchesSettings ( ) ;
34+ initRepoSettingsBranches ( ) ;
3535
3636 expect ( createSortable ) . toHaveBeenCalledWith (
3737 document . querySelector ( '#protected-branches-list' ) ,
@@ -45,7 +45,7 @@ describe('Repository Branch Settings', () => {
4545 test ( 'should not initialize if protected branches list is not present' , ( ) => {
4646 document . body . innerHTML = '' ;
4747
48- initRepoBranchesSettings ( ) ;
48+ initRepoSettingsBranches ( ) ;
4949
5050 expect ( createSortable ) . not . toHaveBeenCalled ( ) ;
5151 } ) ;
@@ -59,7 +59,7 @@ describe('Repository Branch Settings', () => {
5959 return { destroy : vi . fn ( ) } ;
6060 } ) ;
6161
62- initRepoBranchesSettings ( ) ;
62+ initRepoSettingsBranches ( ) ;
6363
6464 expect ( POST ) . toHaveBeenCalledWith (
6565 'some/repo/branches/priority' ,
0 commit comments