@itwin/rpcinterface-full-stack-tests 3.7.11 → 3.7.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/lib/backend/BackendInit.d.ts +1 -1
  2. package/lib/backend/BackendInit.js +28 -28
  3. package/lib/backend/BackendInit.js.map +1 -1
  4. package/lib/common/Settings.d.ts +51 -51
  5. package/lib/common/Settings.js +155 -155
  6. package/lib/common/Settings.js.map +1 -1
  7. package/lib/common/SideChannels.d.ts +5 -5
  8. package/lib/common/SideChannels.js +26 -26
  9. package/lib/common/SideChannels.js.map +1 -1
  10. package/lib/dist/_d48c.bundled-tests.js.map +1 -1
  11. package/lib/dist/bundled-tests.js +103250 -103245
  12. package/lib/dist/bundled-tests.js.map +1 -1
  13. package/lib/dist/core_frontend_lib_esm_ApproximateTerrainHeightsProps_js.bundled-tests.js +9 -9
  14. package/lib/dist/core_frontend_lib_esm_ApproximateTerrainHeightsProps_js.bundled-tests.js.map +1 -1
  15. package/lib/dist/object-storage.bundled-tests.js.map +1 -1
  16. package/lib/dist/vendors-common_temp_node_modules_pnpm_itwin_object-storage-azure_2_0_0_90b3e846c411421b9b9592-e32cf5.bundled-tests.js.map +1 -1
  17. package/lib/dist/vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_3_1_node_modules_loaders_gl_draco_di-d3af41.bundled-tests.js.map +1 -1
  18. package/lib/dist/vendors-common_temp_node_modules_pnpm_reflect-metadata_0_1_13_node_modules_reflect-metadata_R-610cb3.bundled-tests.js.map +1 -1
  19. package/lib/frontend/CodeSpecs.test.d.ts +1 -1
  20. package/lib/frontend/CodeSpecs.test.js +46 -46
  21. package/lib/frontend/CodeSpecs.test.js.map +1 -1
  22. package/lib/frontend/DevToolsRpc.test.d.ts +1 -1
  23. package/lib/frontend/DevToolsRpc.test.js +49 -49
  24. package/lib/frontend/DevToolsRpc.test.js.map +1 -1
  25. package/lib/frontend/Elements.test.d.ts +1 -1
  26. package/lib/frontend/Elements.test.js +68 -68
  27. package/lib/frontend/Elements.test.js.map +1 -1
  28. package/lib/frontend/IModel.test.d.ts +1 -1
  29. package/lib/frontend/IModel.test.js +30 -30
  30. package/lib/frontend/IModel.test.js.map +1 -1
  31. package/lib/frontend/IModelConnection.test.d.ts +1 -1
  32. package/lib/frontend/IModelConnection.test.js +331 -331
  33. package/lib/frontend/IModelConnection.test.js.map +1 -1
  34. package/lib/frontend/Models.test.d.ts +1 -1
  35. package/lib/frontend/Models.test.js +29 -29
  36. package/lib/frontend/Models.test.js.map +1 -1
  37. package/lib/frontend/PresentationRpc.test.d.ts +1 -1
  38. package/lib/frontend/PresentationRpc.test.js +185 -185
  39. package/lib/frontend/PresentationRpc.test.js.map +1 -1
  40. package/lib/frontend/Views.test.d.ts +1 -1
  41. package/lib/frontend/Views.test.js +37 -37
  42. package/lib/frontend/Views.test.js.map +1 -1
  43. package/lib/frontend/setup/IModelSession.d.ts +14 -14
  44. package/lib/frontend/setup/IModelSession.js +100 -100
  45. package/lib/frontend/setup/IModelSession.js.map +1 -1
  46. package/lib/frontend/setup/TestContext.d.ts +17 -17
  47. package/lib/frontend/setup/TestContext.js +75 -75
  48. package/lib/frontend/setup/TestContext.js.map +1 -1
  49. package/lib/frontend/workflows/BasicScenarios.test.d.ts +1 -1
  50. package/lib/frontend/workflows/BasicScenarios.test.js +63 -63
  51. package/lib/frontend/workflows/BasicScenarios.test.js.map +1 -1
  52. package/package.json +14 -14
@@ -1,69 +1,69 @@
1
- "use strict";
2
- /*---------------------------------------------------------------------------------------------
3
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
4
- * See LICENSE.md in the project root for license terms and full copyright notice.
5
- *--------------------------------------------------------------------------------------------*/
6
- var __asyncValues = (this && this.__asyncValues) || function (o) {
7
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
8
- var m = o[Symbol.asyncIterator], i;
9
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
10
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
11
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
12
- };
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- const chai = require("chai");
15
- const core_common_1 = require("@itwin/core-common");
16
- const core_frontend_1 = require("@itwin/core-frontend");
17
- const TestContext_1 = require("./setup/TestContext");
18
- const expect = chai.expect;
19
- describe("IModel Elements", () => {
20
- let iModel;
21
- let elements;
22
- before(async function () {
23
- const testContext = await TestContext_1.TestContext.instance();
24
- if (!testContext.settings.runiModelReadRpcTests)
25
- this.skip();
26
- iModel = await testContext.iModelWithChangesets.getConnection();
27
- elements = iModel.elements;
28
- });
29
- it("should get props", async () => {
30
- const elementIds = [elements.rootSubjectId];
31
- const elementProps = await elements.getProps(elementIds);
32
- expect(elementProps).to.exist.and.be.not.empty;
33
- });
34
- it("should query props", async () => {
35
- const elementProps = await elements.queryProps({ from: core_frontend_1.SpatialModelState.classFullName });
36
- expect(elementProps).to.exist.and.be.not.empty;
37
- });
38
- it("should query ids", async () => {
39
- const ids = await elements.queryIds({ limit: 10, from: "BisCore:Subject" });
40
- expect(ids).to.exist;
41
- });
42
- });
43
- describe("Operational: Execute Query", () => {
44
- it("should successfully execute a simple query", async function () {
45
- var e_1, _a;
46
- const testContext = await TestContext_1.TestContext.instance();
47
- if (!testContext.settings.runiModelReadRpcTests)
48
- this.skip();
49
- const iModel = await testContext.iModelWithChangesets.getConnection();
50
- const query = "select count(*) nRows from(SELECT ECInstanceId FROM Bis.Element LIMIT 50)";
51
- const rows = [];
52
- try {
53
- // eslint-disable-next-line deprecation/deprecation
54
- for (var _b = __asyncValues(iModel.query(query, undefined, { rowFormat: core_common_1.QueryRowFormat.UseJsPropertyNames })), _c; _c = await _b.next(), !_c.done;) {
55
- const row = _c.value;
56
- rows.push(row);
57
- }
58
- }
59
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
60
- finally {
61
- try {
62
- if (_c && !_c.done && (_a = _b.return)) await _a.call(_b);
63
- }
64
- finally { if (e_1) throw e_1.error; }
65
- }
66
- expect(rows).to.be.not.empty;
67
- });
68
- });
1
+ "use strict";
2
+ /*---------------------------------------------------------------------------------------------
3
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
4
+ * See LICENSE.md in the project root for license terms and full copyright notice.
5
+ *--------------------------------------------------------------------------------------------*/
6
+ var __asyncValues = (this && this.__asyncValues) || function (o) {
7
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
8
+ var m = o[Symbol.asyncIterator], i;
9
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
10
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
11
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ const chai = require("chai");
15
+ const core_common_1 = require("@itwin/core-common");
16
+ const core_frontend_1 = require("@itwin/core-frontend");
17
+ const TestContext_1 = require("./setup/TestContext");
18
+ const expect = chai.expect;
19
+ describe("IModel Elements", () => {
20
+ let iModel;
21
+ let elements;
22
+ before(async function () {
23
+ const testContext = await TestContext_1.TestContext.instance();
24
+ if (!testContext.settings.runiModelReadRpcTests)
25
+ this.skip();
26
+ iModel = await testContext.iModelWithChangesets.getConnection();
27
+ elements = iModel.elements;
28
+ });
29
+ it("should get props", async () => {
30
+ const elementIds = [elements.rootSubjectId];
31
+ const elementProps = await elements.getProps(elementIds);
32
+ expect(elementProps).to.exist.and.be.not.empty;
33
+ });
34
+ it("should query props", async () => {
35
+ const elementProps = await elements.queryProps({ from: core_frontend_1.SpatialModelState.classFullName });
36
+ expect(elementProps).to.exist.and.be.not.empty;
37
+ });
38
+ it("should query ids", async () => {
39
+ const ids = await elements.queryIds({ limit: 10, from: "BisCore:Subject" });
40
+ expect(ids).to.exist;
41
+ });
42
+ });
43
+ describe("Operational: Execute Query", () => {
44
+ it("should successfully execute a simple query", async function () {
45
+ var e_1, _a;
46
+ const testContext = await TestContext_1.TestContext.instance();
47
+ if (!testContext.settings.runiModelReadRpcTests)
48
+ this.skip();
49
+ const iModel = await testContext.iModelWithChangesets.getConnection();
50
+ const query = "select count(*) nRows from(SELECT ECInstanceId FROM Bis.Element LIMIT 50)";
51
+ const rows = [];
52
+ try {
53
+ // eslint-disable-next-line deprecation/deprecation
54
+ for (var _b = __asyncValues(iModel.query(query, undefined, { rowFormat: core_common_1.QueryRowFormat.UseJsPropertyNames })), _c; _c = await _b.next(), !_c.done;) {
55
+ const row = _c.value;
56
+ rows.push(row);
57
+ }
58
+ }
59
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
60
+ finally {
61
+ try {
62
+ if (_c && !_c.done && (_a = _b.return)) await _a.call(_b);
63
+ }
64
+ finally { if (e_1) throw e_1.error; }
65
+ }
66
+ expect(rows).to.be.not.empty;
67
+ });
68
+ });
69
69
  //# sourceMappingURL=Elements.test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Elements.test.js","sourceRoot":"","sources":["../../src/frontend/Elements.test.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;;;;;;;AAE/F,6BAA6B;AAE7B,oDAAkE;AAClE,wDAA2E;AAC3E,qDAAkD;AAElD,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;AAE3B,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAC/B,IAAI,MAAwB,CAAC;IAC7B,IAAI,QAAmC,CAAC;IAExC,MAAM,CAAC,KAAK;QACV,MAA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AC1C,EAAE,CAAC,4CAA4C,EAAE,KAAK;;QACpD,MAAM,WAAW,GAAG,MAAM,yBAAW,CAAC,QAAQ,EAAE,CAAC;QAEjD,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,qBAAqB;YAC7C,IAAI,CAAC,IAAI,EAAE,CAAC;QAEd,MAAM,MAAM,GAAG,MAAM,WAAW,CAAC,oBAAqB,CAAC,aAAa,EAAE,CAAC;QACvE,MAAM,KAAK,GAAG,2EAA2E,CAAC;QAE1F,MAAM,IAAI,GAAG,EAAE,CAAC;;YAChB,mDAAmD;YACnD,KAAwB,IAAA,KAAA,cAAA,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,SAAS,EAAE,EAAE,SAAS,EAAE,4BAAc,CAAC,kBAAkB,EAAE,CAAC,CAAA,IAAA;gBAA7F,MAAM,GAAG,WAAA,CAAA;gBAClB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;aAAA;;;;;;;;;QAEjB,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC;IAC/B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n\r\nimport * as chai from \"chai\";\r\nimport { Id64Set, Id64String } from \"@itwin/core-bentley\";\r\nimport { ElementProps, QueryRowFormat } from \"@itwin/core-common\";\r\nimport { IModelConnection, SpatialModelState } from \"@itwin/core-frontend\";\r\nimport { TestContext } from \"./setup/TestContext\";\r\n\r\nconst expect = chai.expect;\r\n\r\ndescribe(\"IModel Elements\", () => {\r\n let iModel: IModelConnection;\r\n let elements: IModelConnection.Elements;\r\n\r\n before(async function () {\r\n const testContext = await TestContext.instance();\r\n\r\n if (!testContext.settings.runiModelReadRpcTests)\r\n this.skip();\r\n\r\n iModel = await testContext.iModelWithChangesets!.getConnection();\r\n elements = iModel.elements;\r\n });\r\n\r\n it(\"should get props\", async () => {\r\n const elementIds: Id64String[] = [elements.rootSubjectId];\r\n const elementProps: ElementProps[] = await elements.getProps(elementIds);\r\n\r\n expect(elementProps).to.exist.and.be.not.empty;\r\n });\r\n\r\n it(\"should query props\", async () => {\r\n const elementProps: ElementProps[] = await elements.queryProps({ from: SpatialModelState.classFullName });\r\n\r\n expect(elementProps).to.exist.and.be.not.empty;\r\n });\r\n\r\n it(\"should query ids\", async () => {\r\n const ids: Id64Set = await elements.queryIds({ limit: 10, from: \"BisCore:Subject\" });\r\n\r\n expect(ids).to.exist;\r\n });\r\n});\r\n\r\ndescribe(\"Operational: Execute Query\", () => {\r\n it(\"should successfully execute a simple query\", async function () {\r\n const testContext = await TestContext.instance();\r\n\r\n if (!testContext.settings.runiModelReadRpcTests)\r\n this.skip();\r\n\r\n const iModel = await testContext.iModelWithChangesets!.getConnection();\r\n const query = \"select count(*) nRows from(SELECT ECInstanceId FROM Bis.Element LIMIT 50)\";\r\n\r\n const rows = [];\r\n // eslint-disable-next-line deprecation/deprecation\r\n for await (const row of iModel.query(query, undefined, { rowFormat: QueryRowFormat.UseJsPropertyNames }))\r\n rows.push(row);\r\n\r\n expect(rows).to.be.not.empty;\r\n });\r\n});\r\n\r\n"]}
1
+ {"version":3,"file":"Elements.test.js","sourceRoot":"","sources":["../../src/frontend/Elements.test.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;;;;;;;AAE/F,6BAA6B;AAE7B,oDAAkE;AAClE,wDAA2E;AAC3E,qDAAkD;AAElD,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;AAE3B,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAC/B,IAAI,MAAwB,CAAC;IAC7B,IAAI,QAAmC,CAAC;IAExC,MAAM,CAAC,KAAK;QACV,MAAM,WAAW,GAAG,MAAM,yBAAW,CAAC,QAAQ,EAAE,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AAM,WAAW,GAAG,MAAM,yBAAW,CAAC,QAAQ,EAAE,CAAC;QAEjD,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,qBAAqB;YAC7C,IAAI,CAAC,IAAI,EAAE,CAAC;QAEd,MAAM,MAAM,GAAG,MAAM,WAAW,CAAC,oBAAqB,CAAC,aAAa,EAAE,CAAC;QACvE,MAAM,KAAK,GAAG,2EAA2E,CAAC;QAE1F,MAAM,IAAI,GAAG,EAAE,CAAC;;YAChB,mDAAmD;YACnD,KAAwB,IAAA,KAAA,cAAA,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,SAAS,EAAE,EAAE,SAAS,EAAE,4BAAc,CAAC,kBAAkB,EAAE,CAAC,CAAA,IAAA;gBAA7F,MAAM,GAAG,WAAA,CAAA;gBAClB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;aAAA;;;;;;;;;QAEjB,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC;IAC/B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n\nimport * as chai from \"chai\";\nimport { Id64Set, Id64String } from \"@itwin/core-bentley\";\nimport { ElementProps, QueryRowFormat } from \"@itwin/core-common\";\nimport { IModelConnection, SpatialModelState } from \"@itwin/core-frontend\";\nimport { TestContext } from \"./setup/TestContext\";\n\nconst expect = chai.expect;\n\ndescribe(\"IModel Elements\", () => {\n let iModel: IModelConnection;\n let elements: IModelConnection.Elements;\n\n before(async function () {\n const testContext = await TestContext.instance();\n\n if (!testContext.settings.runiModelReadRpcTests)\n this.skip();\n\n iModel = await testContext.iModelWithChangesets!.getConnection();\n elements = iModel.elements;\n });\n\n it(\"should get props\", async () => {\n const elementIds: Id64String[] = [elements.rootSubjectId];\n const elementProps: ElementProps[] = await elements.getProps(elementIds);\n\n expect(elementProps).to.exist.and.be.not.empty;\n });\n\n it(\"should query props\", async () => {\n const elementProps: ElementProps[] = await elements.queryProps({ from: SpatialModelState.classFullName });\n\n expect(elementProps).to.exist.and.be.not.empty;\n });\n\n it(\"should query ids\", async () => {\n const ids: Id64Set = await elements.queryIds({ limit: 10, from: \"BisCore:Subject\" });\n\n expect(ids).to.exist;\n });\n});\n\ndescribe(\"Operational: Execute Query\", () => {\n it(\"should successfully execute a simple query\", async function () {\n const testContext = await TestContext.instance();\n\n if (!testContext.settings.runiModelReadRpcTests)\n this.skip();\n\n const iModel = await testContext.iModelWithChangesets!.getConnection();\n const query = \"select count(*) nRows from(SELECT ECInstanceId FROM Bis.Element LIMIT 50)\";\n\n const rows = [];\n // eslint-disable-next-line deprecation/deprecation\n for await (const row of iModel.query(query, undefined, { rowFormat: QueryRowFormat.UseJsPropertyNames }))\n rows.push(row);\n\n expect(rows).to.be.not.empty;\n });\n});\n\n"]}
@@ -1,2 +1,2 @@
1
- export {};
1
+ export {};
2
2
  //# sourceMappingURL=IModel.test.d.ts.map
@@ -1,31 +1,31 @@
1
- "use strict";
2
- /*---------------------------------------------------------------------------------------------
3
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
4
- * See LICENSE.md in the project root for license terms and full copyright notice.
5
- *--------------------------------------------------------------------------------------------*/
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- const chai = require("chai");
8
- const TestContext_1 = require("./setup/TestContext");
9
- const expect = chai.expect;
10
- describe("IModel Views", () => {
11
- let iModel;
12
- before(async function () {
13
- const testContext = await TestContext_1.TestContext.instance();
14
- if (!testContext.settings.runiModelReadRpcTests)
15
- this.skip();
16
- iModel = await testContext.iModelWithChangesets.getConnection();
17
- });
18
- it("should load font map", async () => {
19
- const fontMap = await iModel.loadFontMap();
20
- expect(fontMap).to.exist.and.be.not.empty;
21
- });
22
- it("should successfully get geometry containment", async () => {
23
- const requestProps = {
24
- candidates: [],
25
- clip: [],
26
- };
27
- const result = await iModel.getGeometryContainment(requestProps);
28
- expect(result).to.be.not.be.empty;
29
- });
30
- });
1
+ "use strict";
2
+ /*---------------------------------------------------------------------------------------------
3
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
4
+ * See LICENSE.md in the project root for license terms and full copyright notice.
5
+ *--------------------------------------------------------------------------------------------*/
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ const chai = require("chai");
8
+ const TestContext_1 = require("./setup/TestContext");
9
+ const expect = chai.expect;
10
+ describe("IModel Views", () => {
11
+ let iModel;
12
+ before(async function () {
13
+ const testContext = await TestContext_1.TestContext.instance();
14
+ if (!testContext.settings.runiModelReadRpcTests)
15
+ this.skip();
16
+ iModel = await testContext.iModelWithChangesets.getConnection();
17
+ });
18
+ it("should load font map", async () => {
19
+ const fontMap = await iModel.loadFontMap();
20
+ expect(fontMap).to.exist.and.be.not.empty;
21
+ });
22
+ it("should successfully get geometry containment", async () => {
23
+ const requestProps = {
24
+ candidates: [],
25
+ clip: [],
26
+ };
27
+ const result = await iModel.getGeometryContainment(requestProps);
28
+ expect(result).to.be.not.be.empty;
29
+ });
30
+ });
31
31
  //# sourceMappingURL=IModel.test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IModel.test.js","sourceRoot":"","sources":["../../src/frontend/IModel.test.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;AAE/F,6BAA6B;AAG7B,qDAAkD;AAElD,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;AAE3B,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAE5B,IAAI,MAAwB,CAAC;IAE7B,MAAM,CAAC,KAAK;QACV,MAAM,WAAW,GAAG,MAAM,yBAAW,CAAC,QAAQ,EAAE,CAAC;QAEjD,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,qBAAqB;YAC7C,IAAI,CAAC,IAAI,EAAE,CAAC;QAEd,MAAM,GAAG,MAAM,WAAW,CAAC,oBAAqB,CAAC,aAAa,EAAE,CAAC;IACnE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,sBAAsB,EAAE,KAAK,IAAI,EAAE;QACpC,MAAM,OAAO,GAAY,MAAM,MAAM,CAAC,WAAW,EAAE,CAAC;QACpD,MAAM,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC;IAC5C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,8CAA8C,EAAE,KAAK,IAAI,EAAE;QAC5D,MAAM,YAAY,GAAoC;YACpD,UAAU,EAAE,EAAE;YACd,IAAI,EAAE,EAAE;SACT,CAAC;QAEF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,YAAY,CAAC,CAAC;QACjE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC;IACpC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n\r\nimport * as chai from \"chai\";\r\nimport { FontMap, GeometryContainmentRequestProps } from \"@itwin/core-common\";\r\nimport { IModelConnection } from \"@itwin/core-frontend\";\r\nimport { TestContext } from \"./setup/TestContext\";\r\n\r\nconst expect = chai.expect;\r\n\r\ndescribe(\"IModel Views\", () => {\r\n\r\n let iModel: IModelConnection;\r\n\r\n before(async function () {\r\n const testContext = await TestContext.instance();\r\n\r\n if (!testContext.settings.runiModelReadRpcTests)\r\n this.skip();\r\n\r\n iModel = await testContext.iModelWithChangesets!.getConnection();\r\n });\r\n\r\n it(\"should load font map\", async () => {\r\n const fontMap: FontMap = await iModel.loadFontMap();\r\n expect(fontMap).to.exist.and.be.not.empty;\r\n });\r\n\r\n it(\"should successfully get geometry containment\", async () => {\r\n const requestProps: GeometryContainmentRequestProps = {\r\n candidates: [],\r\n clip: [],\r\n };\r\n\r\n const result = await iModel.getGeometryContainment(requestProps);\r\n expect(result).to.be.not.be.empty;\r\n });\r\n});\r\n"]}
1
+ {"version":3,"file":"IModel.test.js","sourceRoot":"","sources":["../../src/frontend/IModel.test.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;AAE/F,6BAA6B;AAG7B,qDAAkD;AAElD,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;AAE3B,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAE5B,IAAI,MAAwB,CAAC;IAE7B,MAAM,CAAC,KAAK;QACV,MAAM,WAAW,GAAG,MAAM,yBAAW,CAAC,QAAQ,EAAE,CAAC;QAEjD,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,qBAAqB;YAC7C,IAAI,CAAC,IAAI,EAAE,CAAC;QAEd,MAAM,GAAG,MAAM,WAAW,CAAC,oBAAqB,CAAC,aAAa,EAAE,CAAC;IACnE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,sBAAsB,EAAE,KAAK,IAAI,EAAE;QACpC,MAAM,OAAO,GAAY,MAAM,MAAM,CAAC,WAAW,EAAE,CAAC;QACpD,MAAM,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC;IAC5C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,8CAA8C,EAAE,KAAK,IAAI,EAAE;QAC5D,MAAM,YAAY,GAAoC;YACpD,UAAU,EAAE,EAAE;YACd,IAAI,EAAE,EAAE;SACT,CAAC;QAEF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,YAAY,CAAC,CAAC;QACjE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC;IACpC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n\nimport * as chai from \"chai\";\nimport { FontMap, GeometryContainmentRequestProps } from \"@itwin/core-common\";\nimport { IModelConnection } from \"@itwin/core-frontend\";\nimport { TestContext } from \"./setup/TestContext\";\n\nconst expect = chai.expect;\n\ndescribe(\"IModel Views\", () => {\n\n let iModel: IModelConnection;\n\n before(async function () {\n const testContext = await TestContext.instance();\n\n if (!testContext.settings.runiModelReadRpcTests)\n this.skip();\n\n iModel = await testContext.iModelWithChangesets!.getConnection();\n });\n\n it(\"should load font map\", async () => {\n const fontMap: FontMap = await iModel.loadFontMap();\n expect(fontMap).to.exist.and.be.not.empty;\n });\n\n it(\"should successfully get geometry containment\", async () => {\n const requestProps: GeometryContainmentRequestProps = {\n candidates: [],\n clip: [],\n };\n\n const result = await iModel.getGeometryContainment(requestProps);\n expect(result).to.be.not.be.empty;\n });\n});\n"]}
@@ -1,2 +1,2 @@
1
- export {};
1
+ export {};
2
2
  //# sourceMappingURL=IModelConnection.test.d.ts.map