Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions packages/graphhopper/graphhopper.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { GraphHopper } from "./index"

describe("GraphHopper returns responses", () => {
const g = new GraphHopper({ baseUrl: "http://localhost:8989" })
it("gets a directions response", async () => {
const g = new GraphHopper({ baseUrl: "http://localhost:8989" })
await g
.directions(
[
Expand Down Expand Up @@ -31,7 +31,6 @@ describe("GraphHopper returns responses", () => {
})

it("gets an isochrones response", async () => {
const g = new GraphHopper({ baseUrl: "http://localhost:8989" })
await g.reachability([42.51007, 1.53789], "car", [600]).then((i) => {
expect(i.raw).toBeDefined()
expect(i.isochrones).toHaveLength(1)
Expand Down
19 changes: 3 additions & 16 deletions packages/ors/ors.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { ORS } from "./index"

describe("ORS returns responses", () => {
const ors = new ORS({
baseUrl: "http://localhost:8080/ors",
})
it("gets a direction response", async () => {
const ors = new ORS({
baseUrl: "http://localhost:8080/ors",
})

await ors
.directions(
[
Expand All @@ -23,10 +22,6 @@ describe("ORS returns responses", () => {
})

it("gets a direction response from geojson endpoint", async () => {
const ors = new ORS({
baseUrl: "http://localhost:8080/ors",
})

await ors
.directions(
[
Expand All @@ -47,10 +42,6 @@ describe("ORS returns responses", () => {
})

it("gets an isochrone response", async () => {
const ors = new ORS({
baseUrl: "http://localhost:8080/ors",
})

await ors
.reachability([42.5063, 1.51886], "driving-car", [150, 300])
.then((i) => {
Expand All @@ -59,10 +50,6 @@ describe("ORS returns responses", () => {
})

it("gets a matrix response", async () => {
const ors = new ORS({
baseUrl: "http://localhost:8080/ors",
})

await ors
.matrix(
[
Expand Down
3 changes: 1 addition & 2 deletions packages/osrm/osrm.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { OSRM } from "./index"

describe("OSRM returns responses", () => {
const o = new OSRM({ baseUrl: "http://localhost:5000" })
it("gets a direction response", async () => {
const o = new OSRM({ baseUrl: "http://localhost:5000" })
await o
.directions(
[
Expand All @@ -19,7 +19,6 @@ describe("OSRM returns responses", () => {
})

it("gets a matrix response", async () => {
const o = new OSRM({ baseUrl: "http://localhost:5000" })
await o
.matrix(
[
Expand Down
5 changes: 1 addition & 4 deletions packages/valhalla/valhalla.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Valhalla } from "./index"

describe("Valhalla returns responses", () => {
const v = new Valhalla({ baseUrl: "http://localhost:8002" })
it("gets a directions response", async () => {
const v = new Valhalla({ baseUrl: "http://localhost:8002" })
await v
.directions(
[
Expand Down Expand Up @@ -31,7 +31,6 @@ describe("Valhalla returns responses", () => {
})

it("gets an isochrone response", async () => {
const v = new Valhalla({ baseUrl: "http://localhost:8002" })
await v
.reachability([42.50823, 1.52601], "pedestrian", [30, 90])
.then((i) => {
Expand All @@ -41,7 +40,6 @@ describe("Valhalla returns responses", () => {
})

it("gets an isochrone response with polygons", async () => {
const v = new Valhalla({ baseUrl: "http://localhost:8002" })
await v
.reachability([42.50823, 1.52601], "pedestrian", [30, 90], {
polygons: true,
Expand All @@ -58,7 +56,6 @@ describe("Valhalla returns responses", () => {
})

it("gets an matrix response", async () => {
const v = new Valhalla({ baseUrl: "http://localhost:8002" })
await v
.matrix(
[
Expand Down