diff --git a/src/lib/infrastructure/gateway/did-gateway/endpoints/get-did-keyvaluepairs-endpoint.ts b/src/lib/infrastructure/gateway/did-gateway/endpoints/get-did-keyvaluepairs-endpoint.ts index 184977b19..6b2f002df 100644 --- a/src/lib/infrastructure/gateway/did-gateway/endpoints/get-did-keyvaluepairs-endpoint.ts +++ b/src/lib/infrastructure/gateway/did-gateway/endpoints/get-did-keyvaluepairs-endpoint.ts @@ -37,11 +37,10 @@ export default class GetDIDKeyValuePairsEndpoint extends BaseEndpoint { return { key: key, value: value } as DIDKeyValuePairs } diff --git a/test/gateway/did/did-gateway-keyvaluepairs.test.ts b/test/gateway/did/did-gateway-keyvaluepairs.test.ts index 15733982d..8e7270bc8 100644 --- a/test/gateway/did/did-gateway-keyvaluepairs.test.ts +++ b/test/gateway/did/did-gateway-keyvaluepairs.test.ts @@ -33,5 +33,6 @@ describe("DID Gateway KeyValuePairs Endpoint Tests", () => { const dto: DIDKeyValuePairsDTO = await didGateway.getDIDKeyValuePairs(MockRucioServerFactory.VALID_RUCIO_TOKEN, "test", "dataset1") expect(dto.status).toEqual("success") expect(dto.data).toContainEqual({key: "extra_key", value: "extra_value"}) + expect(dto.data).toContainEqual({key: "scope", value: "test"}) }); })