aboutsummaryrefslogtreecommitdiffstats
path: root/spec/cell_spec.moon
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2020-04-24 21:52:58 +0000
committers-ol <s-ol@users.noreply.github.com>2020-04-26 09:36:07 +0000
commit7fa72077cad3401a7d83d75a4b1f0198cdd9036f (patch)
tree7e11b4e2d4e2a65e3c2adced29921227761f8f12 /spec/cell_spec.moon
parentfix registry/module bugs (diff)
downloadalive-7fa72077cad3401a7d83d75a4b1f0198cdd9036f.tar.gz
alive-7fa72077cad3401a7d83d75a4b1f0198cdd9036f.zip
fix existing tests
Diffstat (limited to 'spec/cell_spec.moon')
-rw-r--r--spec/cell_spec.moon16
1 files changed, 9 insertions, 7 deletions
diff --git a/spec/cell_spec.moon b/spec/cell_spec.moon
index 673fedf..0b2ff64 100644
--- a/spec/cell_spec.moon
+++ b/spec/cell_spec.moon
@@ -1,14 +1,16 @@
+import do_setup from require 'spec.test_setup'
import Cell, RootCell from require 'alv.cell'
import ValueStream, Scope, Tag, SimpleRegistry, globals from require 'alv'
-import Logger from require 'alv.logger'
-Logger\init 'silent'
+import Copilot from require 'alv.copilot'
-hello_world = Cell.parse (Tag.parse '2'), { '', (ValueStream.sym 'hello'), ' ', (ValueStream.str 'world'), '' }
-two_plus_two = Cell.parse (Tag.parse '3'), { '', (ValueStream.sym '+'), ' ', (ValueStream.num 2), ' ', (ValueStream.num 2), '' }
+setup do_setup
-reg = SimpleRegistry!
-setup -> reg\grab!
-teardown -> reg\release!
+hello_world = Cell.parse Tag.parse('2'), {
+ '', (ValueStream.sym 'hello'), ' ', (ValueStream.str 'world'), ''
+}
+two_plus_two = Cell.parse Tag.parse('3'), {
+ '', (ValueStream.sym '+'), ' ', (ValueStream.num 2), ' ', (ValueStream.num 2), ''
+}
describe 'Cell', ->
describe 'when cloned', ->