@microsoft/useragent-sdk
Version:
SDK for building decentralized identity wallets and enterprise agents.
25 lines • 1.2 kB
JavaScript
;
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
Object.defineProperty(exports, "__esModule", { value: true });
const HubObjectQueryRequest_1 = require("../../../src/hubSession/requests/HubObjectQueryRequest");
describe('HubObjectQueryRequest', () => {
describe('getRequestJson()', () => {
it('should return a complete request body', async () => {
const req = new HubObjectQueryRequest_1.default({
object_id: ['1234'],
});
const json = await req.getRequestJson();
expect(json).toEqual({
'@context': 'https://schema.identity.foundation/0.1',
'@type': 'ObjectQueryRequest',
query: {
object_id: ['1234'],
},
});
});
});
});
//# sourceMappingURL=HubObjectQueryRequest.spec.js.map