Skip to content

Commit 5c920e5

Browse files
committed
make specs look for the init files (shouldn't loadkit do this??)
1 parent ae5d0c7 commit 5c920e5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

spec/helpers.moon

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ with_dev = (fn) ->
2424

2525
setup ->
2626
_G.require = (mod) ->
27+
switch mod
28+
when "moonscript"
29+
"moonscript.init"
30+
when "moon"
31+
"moon.init"
32+
2733
return dev_cache[mod] if dev_cache[mod]
2834

2935
testable = mod\match("moonscript%.") or mod == "moonscript" or

0 commit comments

Comments
 (0)