@viewar/guide
Advanced tools
Comparing version 0.11.6 to 0.11.7
{ | ||
"name": "@viewar/guide", | ||
"version": "0.11.6", | ||
"version": "0.11.7", | ||
"description": "ViewAR Guide", | ||
@@ -5,0 +5,0 @@ "main": "dist/viewar-guide.js", |
@@ -29,2 +29,4 @@ import Vector3 from '../../math/vector3'; | ||
} | ||
} else { | ||
return { success: true, height: currentPosition.y + 0.4 * METER }; | ||
} | ||
@@ -31,0 +33,0 @@ } |
@@ -59,6 +59,14 @@ import test from 'tape'; | ||
test('getTargetHeight - returns no success if previous waypoint not existing.', (assert) => { | ||
test('getTargetHeight - returns success if previous waypoint not existing.', (assert) => { | ||
const initialHeight = 400; | ||
const navigation = { | ||
currentWaypoint: NO_WAYPOINT, | ||
currentWaypoint: { | ||
pose: { | ||
position: { | ||
x: 0, | ||
y: 10, | ||
z: 0, | ||
} | ||
} | ||
}, | ||
previousWaypoint: NO_WAYPOINT, | ||
@@ -75,4 +83,4 @@ }; | ||
assert.equals(success, false); | ||
assertEpsilonEquals(assert, height, initialHeight); | ||
assert.equals(success, true); | ||
assertEpsilonEquals(assert, height, 410); | ||
@@ -79,0 +87,0 @@ assert.end(); |
Sorry, the diff of this file is too big to display
196992
16
2781