beeeeg update
Some checks failed
Test and deploy staging / staging (push) Has been cancelled

This commit is contained in:
2026-09-23 04:15:10 +00:00
parent 487eff5bb2
commit d0c7b6548b
135 changed files with 9531 additions and 1777 deletions

10
src/lib/geo.test.ts Normal file
View File

@@ -0,0 +1,10 @@
import { describe, expect, it } from 'vitest';
import { distanceMeters } from './geo';
describe('distanceMeters', () => {
it('keeps nearby sightings within the 30 km limit and rejects distant ones', () => {
expect(distanceMeters(52.009, 4.708, 52.009, 4.708)).toBe(0);
expect(distanceMeters(52.009, 4.708, 52.01, 4.71)).toBeLessThan(30_000);
expect(distanceMeters(52.009, 4.708, 52.37, 4.9)).toBeGreaterThan(30_000);
});
});