aboutsummaryrefslogtreecommitdiff
path: root/tests/space_fromfetch.js
blob: 2d8572a989b9c1943f6fe9f2a0967cda3dc37f0f (plain)
1
2
3
4
5
6
7
8
9
// Tets Space.fromfetch
const space = require('../space')

newspace = new space.Space()

newspace.fromfetch({"4,2": {"content": "        hhhhhhhh             k                        hone                  ns                                                  ", "properties": {"writability": null, "cell_props": {}}}},[4,2,4,2],conform=false);
// Straight from a real tileUpdate

console.log(newspace.data); //Should be an array of arrays of chars, representing the content of "content" above.