"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license terms.
*--------------------------------------------------------------------------------------------*/
const chai = require("chai");
const imodeljs_frontend_1 = require("@bentley/imodeljs-frontend");
const TestContext_1 = require("./setup/TestContext");
const expect = chai.expect;
describe("IModel Models", () => {
    let iModel;
    let testContext;
    before(async function () {
        testContext = await TestContext_1.TestContext.instance();
        if (!testContext.settings.runiModelReadRpcTests)
            this.skip();
        iModel = await testContext.iModelWithChangesets.getConnection();
    });
    it("should get props", async () => {
        const modelIds = [iModel.models.repositoryModelId];
        const modelProps = await iModel.models.getProps(modelIds);
        expect(modelProps).to.exist.and.be.not.empty;
    });
    it("should query props", async () => {
        const modelProps = await iModel.models.queryProps({ from: imodeljs_frontend_1.SpatialModelState.classFullName });
        expect(modelProps).to.exist.and.be.not.empty;
    });
});
//# sourceMappingURL=Models.test.js.map