Skip to content

Commit

Permalink
Make sure the access keys are set to run PlanProjection tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdastous-bentley committed Feb 17, 2022
1 parent 40a204c commit 6fc95a2
Showing 1 changed file with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
import { expect } from "chai";
import { assert, expect } from "chai";
import { Id64 } from "@itwin/core-bentley";
import { BackgroundMapSettings, ColorByName, ColorDef, GlobeMode, PlanProjectionSettings, PlanProjectionSettingsProps } from "@itwin/core-common";
import { DisplayStyle3dState, GeometricModel3dState, IModelConnection, Pixel, SnapshotConnection } from "@itwin/core-frontend";
Expand All @@ -14,13 +14,27 @@ describe("Plan projections", () => {
let mirukuru: IModelConnection;

before(async () => {
assert.isDefined(process.env.TEST_BING_MAPS_KEY, "The test requires that a Bing Maps key is configured.");
assert.isDefined(process.env.TEST_MAPBOX_KEY, "The test requires that a MapBox key is configured.");

const opts = {
electronApp: { rpcInterfaces },
iModelApp: {
renderSys: {
// Test wants to read the color of exactly one pixel, specified in CSS pixels. Ignore device pixel ratio.
dpiAwareViewports: false,
},
mapLayerOptions: {
BingMaps: { // eslint-disable-line
key: "key",
value: process.env.TEST_BING_MAPS_KEY!, // will be caught in the assert above if undefined.
},
MapboxImagery: { // eslint-disable-line
key: "access_token",
value: process.env.TEST_MAPBOX_KEY!, // will be caught in the assert above if undefined.
},
},

},
};

Expand Down

0 comments on commit 6fc95a2

Please sign in to comment.