@itwin/ecschema-rpcinterface-tests 5.2.0-dev.1 → 5.2.0-dev.11
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.
|
@@ -28,5 +28,9 @@ describe("Schema RPC Interface", () => {
|
|
|
28
28
|
const schemaJSON = await ecschema_rpcinterface_common_1.ECSchemaRpcInterface.getClient().getSchemaJSON(iModel.getRpcProps(), schemaKeys[0].name);
|
|
29
29
|
(0, chai_1.expect)(schemaJSON).to.not.be.undefined;
|
|
30
30
|
});
|
|
31
|
+
it("should return undefined for non-existent schema", async () => {
|
|
32
|
+
const schemaJSON = await ecschema_rpcinterface_common_1.ECSchemaRpcInterface.getClient().getSchemaJSON(iModel.getRpcProps(), "DoesNotExist");
|
|
33
|
+
(0, chai_1.expect)(schemaJSON).to.be.undefined;
|
|
34
|
+
});
|
|
31
35
|
});
|
|
32
36
|
//# sourceMappingURL=SchemaRpcInterface.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaRpcInterface.test.js","sourceRoot":"","sources":["../../src/frontend/SchemaRpcInterface.test.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;AAE/F,+BAA8B;AAG9B,sFAA2E;AAC3E,qDAAkD;AAClD,gEAAkF;AAElF,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;IAEpC,IAAI,MAAwB,CAAC;IAC7B,IAAI,WAAwB,CAAC;IAE7B,MAAM,CAAC,KAAK,IAAI,EAAE;QAChB,WAAW,GAAG,MAAM,yBAAW,CAAC,QAAQ,EAAE,CAAC;QAC3C,MAAM,GAAG,MAAM,WAAW,CAAC,oBAAqB,CAAC,aAAa,EAAE,CAAC;IACnE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,wBAAwB,EAAE,KAAK,IAAI,EAAE;QACtC,MAAM,UAAU,GAAgB,EAAE,CAAC;QACnC,MAAM,KAAK,GAAqB,MAAM,mDAAoB,CAAC,SAAS,EA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AC;IACrC,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 { expect } from \"chai\";\n\nimport { IModelConnection } from \"@itwin/core-frontend\";\nimport { ECSchemaRpcInterface } from \"@itwin/ecschema-rpcinterface-common\";\nimport { TestContext } from \"./setup/TestContext\";\nimport { SchemaKey, SchemaKeyProps, SchemaProps } from \"@itwin/ecschema-metadata\";\n\ndescribe(\"Schema RPC Interface\", () => {\n\n let iModel: IModelConnection;\n let testContext: TestContext;\n\n before(async () => {\n testContext = await TestContext.instance();\n iModel = await testContext.iModelWithChangesets!.getConnection();\n });\n\n it(\"should get schema keys\", async () => {\n const schemaKeys: SchemaKey[] = [];\n const props: SchemaKeyProps[] = await ECSchemaRpcInterface.getClient().getSchemaKeys(iModel.getRpcProps());\n props.forEach((prop: SchemaKeyProps) => schemaKeys.push(SchemaKey.fromJSON(prop)));\n expect(schemaKeys).to.not.be.undefined;\n });\n\n it(\"should get schema JSON\", async () => {\n const schemaKeys: SchemaKey[] = [];\n const props: SchemaKeyProps[] = await ECSchemaRpcInterface.getClient().getSchemaKeys(iModel.getRpcProps());\n props.forEach((prop: SchemaKeyProps) => schemaKeys.push(SchemaKey.fromJSON(prop)));\n const schemaJSON: SchemaProps | undefined = await ECSchemaRpcInterface.getClient().getSchemaJSON(iModel.getRpcProps(), schemaKeys[0].name);\n expect(schemaJSON).to.not.be.undefined;\n });\n\n it(\"should return undefined for non-existent schema\", async () => {\n const schemaJSON: SchemaProps | undefined = await ECSchemaRpcInterface.getClient().getSchemaJSON(iModel.getRpcProps(), \"DoesNotExist\");\n expect(schemaJSON).to.be.undefined;\n });\n});\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itwin/ecschema-rpcinterface-tests",
|
|
3
|
-
"version": "5.2.0-dev.
|
|
3
|
+
"version": "5.2.0-dev.11",
|
|
4
4
|
"description": "Integration tests for the Schema RPC Interface",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Bentley Systems, Inc.",
|
|
@@ -23,18 +23,18 @@
|
|
|
23
23
|
"dotenv-expand": "^5.1.0",
|
|
24
24
|
"mocha": "^11.1.0",
|
|
25
25
|
"openid-client": "^4.7.4",
|
|
26
|
-
"@itwin/
|
|
27
|
-
"@itwin/
|
|
28
|
-
"@itwin/
|
|
29
|
-
"@itwin/core-
|
|
30
|
-
"@itwin/
|
|
31
|
-
"@itwin/core-
|
|
32
|
-
"@itwin/
|
|
33
|
-
"@itwin/ecschema-rpcinterface-common": "5.2.0-dev.
|
|
34
|
-
"@itwin/
|
|
35
|
-
"@itwin/
|
|
36
|
-
"@itwin/presentation-frontend": "5.2.0-dev.
|
|
37
|
-
"@itwin/
|
|
26
|
+
"@itwin/certa": "5.2.0-dev.11",
|
|
27
|
+
"@itwin/build-tools": "5.2.0-dev.11",
|
|
28
|
+
"@itwin/core-common": "5.2.0-dev.11",
|
|
29
|
+
"@itwin/core-geometry": "5.2.0-dev.11",
|
|
30
|
+
"@itwin/ecschema-metadata": "5.2.0-dev.11",
|
|
31
|
+
"@itwin/core-bentley": "5.2.0-dev.11",
|
|
32
|
+
"@itwin/core-frontend": "5.2.0-dev.11",
|
|
33
|
+
"@itwin/ecschema-rpcinterface-common": "5.2.0-dev.11",
|
|
34
|
+
"@itwin/ecschema-rpcinterface-impl": "5.2.0-dev.11",
|
|
35
|
+
"@itwin/core-quantity": "5.2.0-dev.11",
|
|
36
|
+
"@itwin/presentation-frontend": "5.2.0-dev.11",
|
|
37
|
+
"@itwin/presentation-common": "5.2.0-dev.11"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@itwin/eslint-plugin": "5.2.2-dev.2",
|
|
@@ -57,9 +57,9 @@
|
|
|
57
57
|
"typescript": "~5.6.2",
|
|
58
58
|
"webpack": "^5.97.1",
|
|
59
59
|
"webpack-cli": "^5.0.1",
|
|
60
|
-
"
|
|
61
|
-
"@itwin/
|
|
62
|
-
"
|
|
60
|
+
"internal-tools": "3.0.0-dev.69",
|
|
61
|
+
"@itwin/core-backend": "5.2.0-dev.11",
|
|
62
|
+
"@itwin/express-server": "5.2.0-dev.11"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|
|
65
65
|
"build": "tsc 1>&2 && npm run -s webpack:test",
|