From 790a01a32aa37684a5c39e5af6cb17d892212e79 Mon Sep 17 00:00:00 2001 From: Holden Rohrer Date: Fri, 27 Dec 2019 14:13:48 -0500 Subject: added proto-.loc functionality to space.js --- tests/space_fromfetch.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/space_fromfetch.js') 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. -- cgit