@microsoft/useragent-sdk
Version:
SDK for building decentralized identity wallets and enterprise agents.
20 lines • 1.05 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 HubWriteResponse_1 = require("../../../src/hubSession/responses/HubWriteResponse");
describe('HubWriteResponse', () => {
describe('getRevisions()', () => {
it('should return the object revisions', async () => {
const resp = new HubWriteResponse_1.default({
'@context': 'https://schema.identity.foundation/0.1',
'@type': 'WriteResponse',
revisions: ['abc', 'def'],
});
expect(await resp.getRevisions()).toEqual(['abc', 'def']);
});
});
});
//# sourceMappingURL=HubWriteResponse.spec.js.map