@@ -15,7 +15,7 @@ describe('ModuleExporter exportByBranches', () => {
1515 sandbox . restore ( ) ;
1616 } ) ;
1717
18- it ( 'should set branchDir to exportDir when no branch specified (default main) ' , async ( ) => {
18+ it ( 'should select main branch and call export when no branch specified' , async ( ) => {
1919 const branches = [
2020 { uid : 'main' , source : '' , name : 'main' } ,
2121 { uid : 'dev' , source : 'main' , name : 'dev' } ,
@@ -41,12 +41,11 @@ describe('ModuleExporter exportByBranches', () => {
4141
4242 await exporter . exportByBranches ( ) ;
4343
44- expect ( exportConfig . branchDir ) . to . equal ( exportDir ) ;
4544 expect ( exportConfig . branchName ) . to . equal ( 'main' ) ;
4645 expect ( exportStub . calledOnce ) . to . be . true ;
4746 } ) ;
4847
49- it ( 'should set branchDir to exportDir when branch is specified via branchName ' , async ( ) => {
48+ it ( 'should select branch from branchName and call export ' , async ( ) => {
5049 const branches = [
5150 { uid : 'main' , source : '' , name : 'main' } ,
5251 { uid : 'dev' , source : 'main' , name : 'dev' } ,
@@ -73,7 +72,6 @@ describe('ModuleExporter exportByBranches', () => {
7372
7473 await exporter . exportByBranches ( ) ;
7574
76- expect ( exportConfig . branchDir ) . to . equal ( exportDir ) ;
7775 expect ( exportConfig . branchName ) . to . equal ( 'dev' ) ;
7876 expect ( exportStub . calledOnce ) . to . be . true ;
7977 } ) ;
0 commit comments