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

newspace = new 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.