1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-25 14:34:19 +00:00
pds-2021-g2-nest/nest_frontend/objects/MapArea.test.js
2021-05-22 04:32:47 +02:00

13 lines
421 B
JavaScript

import Coordinates from "./Coordinates"
import MapArea from "./MapArea"
test("MapArea can be constructed", () => {
const mapArea = new MapArea(1000, new Coordinates(0.0, 0.0))
expect(mapArea).toBeTruthy()
})
test("MapArea can be rendered to a spec-compatible string", () => {
const mapArea = new MapArea(1000, new Coordinates(0.0, 0.0))
expect(mapArea.toString()).toBe("< 1000 0.0000000 0.0000000")
})