auto-git:
[change] tests/domain/world-settings.test.ts [change] tests/serialization/scene-document-json.test.ts
This commit is contained in:
@@ -207,9 +207,8 @@ describe("world settings helpers", () => {
|
|||||||
y: 1,
|
y: 1,
|
||||||
z: 0.35
|
z: 0.35
|
||||||
};
|
};
|
||||||
const defaults = createDefaultWorldCelestialOrbitAuthoringSettings(
|
const defaults =
|
||||||
direction
|
createDefaultWorldCelestialOrbitAuthoringSettings(direction);
|
||||||
);
|
|
||||||
const derivedSunOrbit =
|
const derivedSunOrbit =
|
||||||
createWorldCelestialOrbitSettingsFromPeakDirection(direction);
|
createWorldCelestialOrbitSettingsFromPeakDirection(direction);
|
||||||
|
|
||||||
|
|||||||
@@ -232,10 +232,9 @@ describe("scene document JSON", () => {
|
|||||||
);
|
);
|
||||||
|
|
||||||
expect(migratedDocument.version).toBe(SCENE_DOCUMENT_VERSION);
|
expect(migratedDocument.version).toBe(SCENE_DOCUMENT_VERSION);
|
||||||
expect(migratedDocument.world.celestialOrbits.sun.azimuthDegrees).toBeCloseTo(
|
expect(
|
||||||
153.4349,
|
migratedDocument.world.celestialOrbits.sun.azimuthDegrees
|
||||||
3
|
).toBeCloseTo(153.4349, 3);
|
||||||
);
|
|
||||||
expect(
|
expect(
|
||||||
migratedDocument.world.celestialOrbits.sun.peakAltitudeDegrees
|
migratedDocument.world.celestialOrbits.sun.peakAltitudeDegrees
|
||||||
).toBeGreaterThan(60);
|
).toBeGreaterThan(60);
|
||||||
|
|||||||
Reference in New Issue
Block a user