aboutsummaryrefslogtreecommitdiff
path: root/tests/space_fromfetch.js
blob: e6c78469224d562cebe8c99aa59643126445bb46 (plain)
1
2
3
4
5
6
7
8
9
10
// 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.loc);
console.log(newspace.data); //Should be an array of arrays of chars, representing the content of "content" above.