Initial monorepo: readin, sensorapi, noise (Node22, npm ci, axios1.x, i18next-fs-backend)

This commit is contained in:
rxf
2026-07-25 11:35:41 +00:00
commit 2df1f79617
97 changed files with 13547 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
import {getData4map} from '../actions/data4map.js'
import assert from 'assert/strict'
describe("get data for map - test", function() {
const box = {
"east": 9.322391662597672,
"north": 48.86726810417461,
"south": 48.69057640500091,
"west": 8.99760833740236
}
it("geigeractivity should return at least 4 elements", async function() {
const erg = await getData4map(
{
"type": "radioactivity",
"box": box,
test: true
})
assert.ok(erg.count >= 4)
})
it("pm should return at least 270 elements", async function() {
const erg = await getData4map(
{
"type": "pm",
"box": box
})
assert.ok(erg.count >= 270)
})
})