Ertser Commit der test-Version
This commit is contained in:
29
test/test.js
Normal file
29
test/test.js
Normal 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)
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user