UNPKG

@itwin/insights-client

Version:

Insights client for the iTwin platform

20 lines 1.3 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *--------------------------------------------------------------------------------------------*/ const chai_1 = require("chai"); const GlobalSetup_1 = require("../../utils/GlobalSetup"); describe("Audit trail client integration tests", () => { it("Audit Trail Client - Get Audit Trail", async () => { const auditTrail = await GlobalSetup_1.auditTrailClient.getAuditTrail(GlobalSetup_1.accessToken, GlobalSetup_1.testIModel.id); (0, chai_1.expect)(auditTrail).not.be.undefined; }); it("Audit Trail Client - Get Audit Trail with path and top parameters", async () => { const auditTrail = await GlobalSetup_1.auditTrailClient.getAuditTrail(GlobalSetup_1.accessToken, GlobalSetup_1.testIModel.id, "mappings", undefined, undefined, 2); (0, chai_1.expect)(auditTrail.auditTrailEntries.length).to.be.equal(2); (0, chai_1.expect)(auditTrail._links.next).not.be.undefined; }); }); //# sourceMappingURL=AuditTrailClient.test.js.map