Skip to content

Commit bef547a

Browse files
committed
[dashboard] Update service mocks
1 parent 44eb7a3 commit bef547a

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

components/dashboard/src/service/service-mock.ts

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,59 @@ const gitpodServiceMock = createServiceMock({
210210
onDidCloseConnection: Event.None,
211211
trackEvent: async (event) => {},
212212
trackLocation: async (event) => {},
213+
getSupportedWorkspaceClasses: async () => {
214+
return [
215+
{
216+
id: "g1-standard",
217+
category: "GENERAL PURPOSE",
218+
displayName: "Standard",
219+
description: "Up to 4 vCPU, 8GB memory, 30GB disk",
220+
powerups: 1,
221+
},
222+
{
223+
id: "g1-large",
224+
category: "GENERAL PURPOSE",
225+
displayName: "Large",
226+
description: "Up to 8 vCPU, 16GB memory, 50GB disk",
227+
powerups: 2,
228+
},
229+
];
230+
},
231+
getShowPaymentUI: async () => {
232+
return false;
233+
},
234+
getClientRegion: async () => {
235+
return "europe-west-1";
236+
},
237+
isStudent: async () => {
238+
return false;
239+
},
240+
isChargebeeCustomer: async () => {
241+
return false;
242+
},
243+
getSuggestedContextURLs: async () => {
244+
return [];
245+
},
246+
getIDEOptions: async () => {
247+
return {
248+
defaultDesktopIde: "code-desktop",
249+
defaultIde: "code",
250+
options: {
251+
code: {
252+
title: "VS Code",
253+
type: "browser",
254+
logo: "",
255+
image: "eu.gcr.io/gitpod-core-dev/build/ide/code:commit-050c611f28564c6c7b1e58db470f07997dfb4730",
256+
},
257+
"code-desktop": {
258+
title: "VS Code",
259+
type: "desktop",
260+
logo: "",
261+
image: "eu.gcr.io/gitpod-core-dev/build/ide/code-desktop:commit-9b29fc94cc1f0c776ef74f60dc3a7ce68d41bdbe",
262+
},
263+
},
264+
};
265+
},
213266
});
214267

215268
export { gitpodServiceMock };

0 commit comments

Comments
 (0)