Skip to content

Commit de2a22d

Browse files
vi3k6i5copybara-github
authored andcommitted
ADK changes
PiperOrigin-RevId: 817253691
1 parent e905ef0 commit de2a22d

File tree

1 file changed

+32
-30
lines changed

1 file changed

+32
-30
lines changed

src/app/core/services/agent.service.spec.ts

Lines changed: 32 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -89,36 +89,38 @@ describe('AgentService', () => {
8989
});
9090
});
9191

92-
describe('listApps', () => {
93-
it('should call list-apps endpoint with correct url', () => {
94-
service.listApps().subscribe();
95-
const req = httpTestingController.expectOne(
96-
API_SERVER_BASE_URL + LIST_APPS_PATH,
97-
);
98-
expect(req.request.method).toEqual(METHOD_GET);
99-
req.flush([]);
100-
});
101-
102-
it('should return list of apps from http get', async () => {
103-
const appsPromise = firstValueFrom(service.listApps());
104-
const req = httpTestingController.expectOne(
105-
API_SERVER_BASE_URL + LIST_APPS_PATH,
106-
);
107-
req.flush(['app1', 'app2']);
108-
const apps = await appsPromise;
109-
expect(apps).toEqual(['app1', 'app2']);
110-
});
111-
112-
it('should return an empty observable if apiServerDomain is not set',
113-
async () => {
114-
service.apiServerDomain = '';
115-
const appsPromise = firstValueFrom(service.listApps());
116-
const req = httpTestingController.expectOne(LIST_APPS_PATH);
117-
req.flush([]);
118-
const apps = await appsPromise;
119-
expect(apps).toEqual([]);
120-
});
121-
});
92+
// BEGIN-EXTERNAL
93+
// describe('listApps', () => {
94+
// it('should call list-apps endpoint with correct url', () => {
95+
// service.listApps().subscribe();
96+
// const req = httpTestingController.expectOne(
97+
// API_SERVER_BASE_URL + LIST_APPS_PATH,
98+
// );
99+
// expect(req.request.method).toEqual(METHOD_GET);
100+
// req.flush([]);
101+
// });
102+
103+
// it('should return list of apps from http get', async () => {
104+
// const appsPromise = firstValueFrom(service.listApps());
105+
// const req = httpTestingController.expectOne(
106+
// API_SERVER_BASE_URL + LIST_APPS_PATH,
107+
// );
108+
// req.flush(['app1', 'app2']);
109+
// const apps = await appsPromise;
110+
// expect(apps).toEqual(['app1', 'app2']);
111+
// });
112+
113+
// it('should return an empty observable if apiServerDomain is not set',
114+
// async () => {
115+
// service.apiServerDomain = '';
116+
// const appsPromise = firstValueFrom(service.listApps());
117+
// const req = httpTestingController.expectOne(LIST_APPS_PATH);
118+
// req.flush([]);
119+
// const apps = await appsPromise;
120+
// expect(apps).toEqual([]);
121+
// });
122+
// });
123+
// END-EXTERNAL
122124

123125
describe('runSse', () => {
124126
it('should set loading state to true when called', () => {

0 commit comments

Comments
 (0)