13 lines
235 B
Plaintext
13 lines
235 B
Plaintext
|
ln = require "ln"
|
||
|
|
||
|
describe "moonscript tests", ->
|
||
|
lgr = ln.default_logger
|
||
|
msg = ""
|
||
|
lgr.filters = {
|
||
|
(message) -> msg = message,
|
||
|
}
|
||
|
|
||
|
it "can log", ->
|
||
|
ln.log {foo: "bar"}
|
||
|
assert.truthy string.find msg, "foo=bar"
|