1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-22 21:14:18 +00:00
pds-2021-g2-nest/nest_frontend/objects/MapArea.test.js

15 lines
422 B
JavaScript
Raw Normal View History

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))
2021-05-22 02:32:47 +00:00
expect(mapArea.toString()).toBe("< 1000 0.0000000 0.0000000")
})
2021-05-24 12:49:59 +00:00