mirror of
https://github.com/nasa/openmct.git
synced 2025-03-19 18:45:31 +00:00
fix unit tests
This commit is contained in:
parent
0c111f5fa2
commit
a350c8e584
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user