Socket
Socket
Sign inDemoInstall

geojson-path-finder

Package Overview
Dependencies
6
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.2-4 to 2.0.2

test/two-islands.json

2

package.json
{
"name": "geojson-path-finder",
"version": "2.0.2-4",
"version": "2.0.2",
"description": "Find shortest path through a network of GeoJSON",

@@ -5,0 +5,0 @@ "repository": "git@github.com:perliedman/geojson-path-finder.git",

import largeNetwork from "./large-network.json";
import preprocess from "../src/preprocessor";
import { test } from "vitest";
import { expect, test } from "vitest";
import osmWeight from "./osm-weight";
import twoIslands from "./two-islands.json";
import createTopology from "../src/topology";

@@ -24,1 +26,6 @@ test("preprocesses a large network", () => {

});
test("compacts islands correctly", () => {
const graph = preprocess(twoIslands);
expect(Object.keys(graph.compactedVertices).length).toEqual(2);
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc