Skip to content

Commit

Permalink
adjusted tests to work with new default field ov view
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Deubler <tim.deubler@here.com>
  • Loading branch information
TerminalTim committed Nov 25, 2024
1 parent e2cc8b5 commit c1b2296
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
10 changes: 6 additions & 4 deletions packages/tests/specs/display/general/pan_map_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,16 @@ describe('pan the map', () => {
await waitForViewportReady(display, () => {
display.pan(100, 100, 0, 0);
});
expect(display.getCenter()).to.deep.almost({latitude: 12.13629159, longitude: 77.98972677});

expect(display.getCenter()).to.deep.almost({latitude: 12.13629159, longitude: 77.98972678});
expect(display.getHeight()).to.equal(600);
expect(display.getWidth()).to.equal(800);

expect(display.getViewBounds()).to.deep.almost({
maxLat: 12.13786494,
maxLon: 77.99187254,
minLat: 12.13471823,
minLon: 77.98758100
maxLon: 77.99187255,
minLat: 12.13471822,
minLon: 77.98758102
});
expect(display.getZoomlevel()).to.equal(18);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ describe('range selector: snapping and overlapping', () => {
expect(info[0].segments[0]).to.deep.include({
from: 0.1,
reversed: false,
to: 0.752498281
to: 0.752494502
});

expect(info[1]).to.deep.include({
Expand Down Expand Up @@ -122,7 +122,7 @@ describe('range selector: snapping and overlapping', () => {
expect(info[0].segments[0]).to.deep.include({
from: 0.1,
reversed: false,
to: 0.752498281
to: 0.752494502
});

expect(info[1]).to.deep.include({
Expand All @@ -132,7 +132,7 @@ describe('range selector: snapping and overlapping', () => {
});

expect(info[1].segments[0]).to.deep.include({
from: 0.752498281,
from: 0.752494502,
reversed: false,
to: 0.9
});
Expand Down Expand Up @@ -164,7 +164,7 @@ describe('range selector: snapping and overlapping', () => {
expect(info[0].segments[0]).to.deep.include({
from: 0.1,
reversed: false,
to: 0.752498281
to: 0.752494502
});

expect(info[1]).to.deep.include({
Expand Down Expand Up @@ -206,7 +206,7 @@ describe('range selector: snapping and overlapping', () => {
expect(info[0].segments[0]).to.deep.include({
from: 0.1,
reversed: false,
to: 0.752498281
to: 0.752494502
});

expect(info[1]).to.deep.include({
Expand All @@ -216,7 +216,7 @@ describe('range selector: snapping and overlapping', () => {
});

expect(info[1].segments[0]).to.deep.include({
from: 0.752498281,
from: 0.752494502,
reversed: false,
to: 0.9
});
Expand Down Expand Up @@ -248,7 +248,7 @@ describe('range selector: snapping and overlapping', () => {
expect(info[0].segments[0]).to.deep.include({
from: 0.1,
reversed: false,
to: 0.752498281
to: 0.752494502
});

expect(info[1]).to.deep.include({
Expand Down Expand Up @@ -290,7 +290,7 @@ describe('range selector: snapping and overlapping', () => {
expect(info[0].segments[0]).to.deep.include({
from: 0.1,
reversed: false,
to: 0.752498281
to: 0.752494502
});

expect(info[1]).to.deep.include({
Expand All @@ -300,7 +300,7 @@ describe('range selector: snapping and overlapping', () => {
});

expect(info[1].segments[0]).to.deep.include({
from: 0.752498281,
from: 0.752494502,
reversed: false,
to: 0.9
});
Expand Down Expand Up @@ -333,7 +333,7 @@ describe('range selector: snapping and overlapping', () => {
expect(info[0].segments[0]).to.deep.include({
from: 0.1,
reversed: false,
to: 0.485830724
to: 0.485828186
});

expect(info[1]).to.deep.include({
Expand Down Expand Up @@ -375,7 +375,7 @@ describe('range selector: snapping and overlapping', () => {
expect(info[0].segments[0]).to.deep.include({
from: 0.1,
reversed: false,
to: 0.552497613
to: 0.552494765
});

expect(info[1]).to.deep.include({
Expand All @@ -385,7 +385,7 @@ describe('range selector: snapping and overlapping', () => {
});

expect(info[1].segments[0]).to.deep.include({
from: 0.552497613,
from: 0.552494765,
reversed: false,
to: 0.9
});
Expand Down

0 comments on commit c1b2296

Please sign in to comment.