mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-10-14 20:01:28 +00:00
test: implement comprehensive unit tests for components (#487)
This commit is contained in:
@@ -91,7 +91,7 @@ export const selectorStore = defineStore({
|
||||
async getServiceInstances(param?: { serviceId: string; isRelation: boolean }) {
|
||||
const serviceId = param ? param.serviceId : this.currentService?.id;
|
||||
if (!serviceId) {
|
||||
return null;
|
||||
return new Promise((resolve) => resolve({ errors: "Service ID is required" }));
|
||||
}
|
||||
const resp = await graphql.query("queryInstances").params({
|
||||
serviceId,
|
||||
@@ -130,7 +130,7 @@ export const selectorStore = defineStore({
|
||||
}
|
||||
const serviceId = params.serviceId || this.currentService?.id;
|
||||
if (!serviceId) {
|
||||
return null;
|
||||
return new Promise((resolve) => resolve({ errors: "Service ID is required" }));
|
||||
}
|
||||
const res = await graphql.query("queryEndpoints").params({
|
||||
serviceId,
|
||||
|
Reference in New Issue
Block a user