@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 HubCommitQueryRequest_1 = require("../../../src/hubSession/requests/HubCommitQueryRequest");
describe('HubCommitQueryRequest', () => {
describe('getRequestJson()', () => {
it('should return a complete request body', async () => {
const req = new HubCommitQueryRequest_1.default({
object_id: ['1234'],
});
const json = await req.getRequestJson();
expect(json).toEqual({
'@context': 'https://schema.identity.foundation/0.1',
'@type': 'CommitQueryRequest',
query: {
object_id: ['1234'],
},
});
});
});
});
//# sourceMappingURL=HubCommitQueryRequest.spec.js.map