From a350c8e58433036a4c924f41acfdb7be6e3174bb Mon Sep 17 00:00:00 2001 From: David Tsay <david.e.tsay@nasa.gov> Date: Thu, 9 Feb 2023 16:53:44 -0800 Subject: [PATCH] fix unit tests --- .../imagery/components/Compass/pluginSpec.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/plugins/imagery/components/Compass/pluginSpec.js b/src/plugins/imagery/components/Compass/pluginSpec.js index bcdbccebfe..4db44eed2d 100644 --- a/src/plugins/imagery/components/Compass/pluginSpec.js +++ b/src/plugins/imagery/components/Compass/pluginSpec.js @@ -36,7 +36,14 @@ describe("The Compass component", () => { pitch: 90, cameraTilt: 100, cameraAzimuth: 90, - sunAngle: 30 + sunAngle: 30, + transformations: { + translateX: 0, + translateY: 18, + rotation: 0, + scale: 0.3, + cameraAngleOfView: 70 + } }; let propsData = { naturalAspectRatio: 0.9, @@ -44,8 +51,7 @@ describe("The Compass component", () => { sizedImageDimensions: { width: 100, height: 100 - }, - compassRoseSizingClasses: '--rose-small --rose-min' + } }; app = new Vue({ @@ -54,7 +60,6 @@ describe("The Compass component", () => { return propsData; }, template: `<Compass - :compass-rose-sizing-classes="compassRoseSizingClasses" :image="image" :natural-aspect-ratio="naturalAspectRatio" :sized-image-dimensions="sizedImageDimensions" @@ -67,7 +72,7 @@ describe("The Compass component", () => { app.$destroy(); }); - describe("when a heading value exists on the image", () => { + describe("when a heading value and cameraAngleOfView exists on the image", () => { it("should display a compass rose", () => { let compassRoseElement = instance.$el.querySelector(COMPASS_ROSE_CLASS