File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -280,5 +280,8 @@ func SourceToStoreCodeCCM(source string) (storeCode string) {
280
280
if source == constants .XSource_Enterprise {
281
281
return "en"
282
282
}
283
+ if source == constants .XSource_Telemarketing {
284
+ return constants .XSource_Eraspace
285
+ }
283
286
return source
284
287
}
Original file line number Diff line number Diff line change @@ -657,7 +657,14 @@ func TestSourceToStoreCodeCCM(t *testing.T) {
657
657
wantStoreCode : "en" ,
658
658
},
659
659
{
660
- name : "source except enterprise should return itself" ,
660
+ name : "source telemarketing should return eraspace" ,
661
+ args : args {
662
+ source : constants .XSource_Telemarketing ,
663
+ },
664
+ wantStoreCode : constants .XSource_Eraspace ,
665
+ },
666
+ {
667
+ name : "other source should return itself" ,
661
668
args : args {
662
669
source : constants .XSource_Eraspace ,
663
670
},
You can’t perform that action at this time.
0 commit comments