aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/socket_cursor.js4
-rw-r--r--tests/socket_fetch.js4
-rw-r--r--tests/space_comb.js6
-rw-r--r--tests/space_file.js4
-rw-r--r--tests/space_fromfetch.js4
-rw-r--r--tests/space_search.js6
-rw-r--r--tests/space_subsection.js4
7 files changed, 16 insertions, 16 deletions
diff --git a/tests/socket_cursor.js b/tests/socket_cursor.js
index dc0ca7f..e9e4df7 100644
--- a/tests/socket_cursor.js
+++ b/tests/socket_cursor.js
@@ -1,8 +1,8 @@
// Tests Socket.cursor and Socket.on('cursor')
-socket = require('../socket');
+Socket = require('../socket');
-world = new socket.Socket();
+world = new Socket();
world.on('open', ()=>{world.cursor([22,23])});
world.on('cursor', (locs, send)=>{console.log(locs,send)});
diff --git a/tests/socket_fetch.js b/tests/socket_fetch.js
index a613dc6..b558f89 100644
--- a/tests/socket_fetch.js
+++ b/tests/socket_fetch.js
@@ -1,7 +1,7 @@
// Tests Socket.fetch and Socket.on('fetch')
-const socket = require('../socket');
+const Socket = require('../socket');
-let world = new socket.Socket();
+let world = new Socket();
world.on('open', () => {world.fetch([[10,10,10,10]])});
diff --git a/tests/space_comb.js b/tests/space_comb.js
index 3fae916..1cde721 100644
--- a/tests/space_comb.js
+++ b/tests/space_comb.js
@@ -1,15 +1,15 @@
// Tests space.comb()
-space = require('../space');
+const Space = require('../space');
-newspace = new space.Space();
+newspace = new Space();
newspace.adhoc('\
line1\n\
&&&&transparency&&&&\n\
\n\
afterempty\n')
-otherspace = new space.Space();
+otherspace = new Space();
otherspace.adhoc('\
&&&transparency&&&\n\
testline');
diff --git a/tests/space_file.js b/tests/space_file.js
index 84e42a3..572214e 100644
--- a/tests/space_file.js
+++ b/tests/space_file.js
@@ -1,7 +1,7 @@
// Tests Space.{to,from}file
-const space = require('../space')
+const Space = require('../space')
-text = new space.Space();
+text = new Space();
text.adhoc('\
line of text\n\
diff --git a/tests/space_fromfetch.js b/tests/space_fromfetch.js
index 2d8572a..67b41cc 100644
--- a/tests/space_fromfetch.js
+++ b/tests/space_fromfetch.js
@@ -1,7 +1,7 @@
// Tets Space.fromfetch
-const space = require('../space')
+const Space = require('../space')
-newspace = new space.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
diff --git a/tests/space_search.js b/tests/space_search.js
index fffdcc7..14ec174 100644
--- a/tests/space_search.js
+++ b/tests/space_search.js
@@ -1,8 +1,8 @@
// Tests space.search
-const space = require('../space')
+const Space = require('../space')
-let text = new space.Space();
+let text = new Space();
text.adhoc('\
\n\
jarvis\n\
@@ -10,7 +10,7 @@ text.adhoc('\
jarvis \
');
-let line = new space.Space();
+let line = new Space();
line.adhoc('jarvis');
console.log(text.search(line))
diff --git a/tests/space_subsection.js b/tests/space_subsection.js
index a2523e5..b30b7e1 100644
--- a/tests/space_subsection.js
+++ b/tests/space_subsection.js
@@ -1,7 +1,7 @@
// Tests Space.subsection()
-const space = require('../space');
+const Space = require('../space');
-newspace = new space.Space();
+newspace = new Space();
newspace.adhoc('\
line\n\
\n\