Skip to content

Commit

Permalink
preload fennelfriend in tests
Browse files Browse the repository at this point in the history
This ensures `require` loads the local fennelfriend instead of anything
installed in the lua path on a given system.
  • Loading branch information
jaawerth committed Jun 29, 2020
1 parent e9eda9c commit 5db423d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
package.loaded.fennel = dofile("fennel.lua")
table.insert(package.loaders or package.searchers, package.loaded.fennel.searcher)
package.loaded.fennelview = package.loaded.fennel.dofile("fennelview.fnl")
package.loaded.fennelfriend = package.loaded.fennel.dofile("fennelfriend.fnl")

local lu = require('test.luaunit')
local runner = lu.LuaUnit:new()
Expand Down

0 comments on commit 5db423d

Please sign in to comment.