aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorHolden Rohrer <holden.rohrer@gmail.com>2019-12-27 14:13:48 -0500
committerHolden Rohrer <holden.rohrer@gmail.com>2019-12-27 14:13:48 -0500
commit790a01a32aa37684a5c39e5af6cb17d892212e79 (patch)
treebd413e7ada66ed2554b4d119ec33df6fcc2a5fd6 /tests
parent639ec59f1913a903dee3bb9068108b78c193d616 (diff)
added proto-.loc functionality to space.js
Diffstat (limited to 'tests')
-rw-r--r--tests/space_fromfetch.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/space_fromfetch.js b/tests/space_fromfetch.js
index 67b41cc..e6c7846 100644
--- a/tests/space_fromfetch.js
+++ b/tests/space_fromfetch.js
@@ -3,7 +3,8 @@ 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);
+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.