aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/lang/struct_spec.moon2
-rw-r--r--spec/test_setup.moon2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/lang/struct_spec.moon b/spec/lang/struct_spec.moon
index 9d2286e..d0af6bc 100644
--- a/spec/lang/struct_spec.moon
+++ b/spec/lang/struct_spec.moon
@@ -2,7 +2,7 @@ import TestPilot from require 'spec.test_setup'
import T, Struct, Constant from require 'alv'
describe "struct", ->
- test = TestPilot ''
+ test = TestPilot '', '(import* struct)\n'
ab = Struct { a: T.num, b: T.bool }
diff --git a/spec/test_setup.moon b/spec/test_setup.moon
index 92756a8..16a3639 100644
--- a/spec/test_setup.moon
+++ b/spec/test_setup.moon
@@ -15,7 +15,7 @@ os.time = do
export COPILOT
class TestPilot extends Copilot
- new: (code, @preamble) =>
+ new: (code, @preamble='') =>
super!
COPILOT = @