aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/stores_spec.moon2
-rw-r--r--spec/test_util.moon18
2 files changed, 0 insertions, 20 deletions
diff --git a/spec/stores_spec.moon b/spec/stores_spec.moon
index 7fa2793..4ba838e 100644
--- a/spec/stores_spec.moon
+++ b/spec/stores_spec.moon
@@ -90,8 +90,6 @@ test_store = (ts) ->
assert.are.same root_index, ts\get_index '', -1
- it "can get indexes recursively", ->
-
it "can load facets", ->
assert.are.equal 'hello', ts\load_facet '/hello', 'name', 'alpha'
assert.are.equal 'world', ts\load_facet '/hello/world', 'name', 'alpha'
diff --git a/spec/test_util.moon b/spec/test_util.moon
index b2ac026..e816286 100644
--- a/spec/test_util.moon
+++ b/spec/test_util.moon
@@ -1,21 +1,3 @@
--- relative imports
-_G.relative = do
- _require = require
-
- (base, sub) ->
- sub = sub or 0
-
- for i=1, sub
- base = base\match '^(.*)%.%w+$'
-
- (name, x) ->
- if name == '.'
- name = base
- else if '.' == name\sub 1, 1
- name = base .. name
-
- _require name
-
sort2 = (a, b) ->
{ax, ay}, {bx, by} = a, b
"#{ax}//#{ay}" < "#{bx}//#{by}"