spec: fix the tests
This commit is contained in:
parent
1e4640a7d7
commit
01192e3021
|
@ -0,0 +1,6 @@
|
|||
require("busted")
|
||||
|
||||
-- We still can't do that with teal 0.15.2+dev.
|
||||
-- The fix for now is to redeclare assert in every test file,
|
||||
-- tl throws a warning but it's non-blocking, so it'll do for now.
|
||||
-- global assert = require("luassert")
|
|
@ -1,7 +1,7 @@
|
|||
local assert = require("luassert")
|
||||
local type Node = require("types.Node")
|
||||
local stringx = require("pl.stringx")
|
||||
local teal_type_definition_printer = require("printer.teal_type_definition")
|
||||
local assert <const> = require("luassert")
|
||||
local type Node = require("awesomewm-d-tl.types.Node")
|
||||
local stringx <const> = require("pl.stringx")
|
||||
local teal_type_definition_printer <const> = require("awesomewm-d-tl.printer.teal_type_definition")
|
||||
|
||||
local printer = teal_type_definition_printer.printer
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
local assert = require("luassert")
|
||||
local type Node = require("types.Node")
|
||||
local scraper = require("scraper.module_doc")
|
||||
local assert <const> = require("luassert")
|
||||
local type Node = require("awesomewm-d-tl.types.Node")
|
||||
local scraper <const> = require("awesomewm-d-tl.scraper.module_doc")
|
||||
|
||||
local get_doc_from_page = scraper.get_doc_from_page
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
return {
|
||||
include_dir = {
|
||||
"../src/awesomewm.d.tl",
|
||||
"../src",
|
||||
"../types",
|
||||
},
|
||||
global_env_def = "busted",
|
||||
global_env_def = "global_env_def",
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue