@@ -4,9 +4,9 @@ import { AppConfig } from '@/global'
44describe ( 'getAppConfig' , ( ) => {
55 const mockViteBaseApiUrl = 'https://api.mock.com'
66
7- it ( 'default base api url if ${BASE_API_URL }" not configured' , ( ) => {
7+ it ( 'default base api url if ${DASHBOARD_API_BASE_URL }" not configured' , ( ) => {
88 const mockAppConfig : AppConfig = {
9- BASE_API_URL : '${BASE_API_URL }' ,
9+ DASHBOARD_API_BASE_URL : '${DASHBOARD_API_BASE_URL }' ,
1010 }
1111
1212 Object . defineProperty ( window , 'APP_CONFIG' , {
@@ -16,15 +16,15 @@ describe('getAppConfig', () => {
1616
1717 const expectedConfig : AppConfig = {
1818 ...mockAppConfig ,
19- BASE_API_URL : 'https://mock.codegate.ai' ,
19+ DASHBOARD_API_BASE_URL : 'https://mock.codegate.ai' ,
2020 }
2121
2222 expect ( getAppConfig ( ) ) . toEqual ( expectedConfig )
2323 } )
2424
25- it ( 'replace base api url if ${BASE_API_URL }" is configured' , ( ) => {
25+ it ( 'replace base api url if ${DASHBOARD_API_BASE_URL }" is configured' , ( ) => {
2626 const mockAppConfig : AppConfig = {
27- BASE_API_URL : mockViteBaseApiUrl ,
27+ DASHBOARD_API_BASE_URL : mockViteBaseApiUrl ,
2828 }
2929
3030 Object . defineProperty ( window , 'APP_CONFIG' , {
@@ -34,7 +34,7 @@ describe('getAppConfig', () => {
3434
3535 const expectedConfig : AppConfig = {
3636 ...mockAppConfig ,
37- BASE_API_URL : mockViteBaseApiUrl ,
37+ DASHBOARD_API_BASE_URL : mockViteBaseApiUrl ,
3838 }
3939
4040 expect ( getAppConfig ( ) ) . toEqual ( expectedConfig )
0 commit comments