chore: fix specs
This commit is contained in:
parent
6ee57456b9
commit
8d7ba519c4
|
@ -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 assert <const> = require("luassert")
|
||||||
local type Node = require("types.Node")
|
local type Node = require("awesomewm-d-tl.types.Node")
|
||||||
local stringx = require("pl.stringx")
|
local stringx <const> = require("pl.stringx")
|
||||||
local teal_type_definition_printer = require("printer.teal_type_definition")
|
local teal_type_definition_printer <const> = require("awesomewm-d-tl.printer.teal_type_definition")
|
||||||
|
|
||||||
local printer = teal_type_definition_printer.printer
|
local printer = teal_type_definition_printer.printer
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
local assert = require("luassert")
|
local assert <const> = require("luassert")
|
||||||
local type Node = require("types.Node")
|
local type Node = require("awesomewm-d-tl.types.Node")
|
||||||
local scraper = require("scraper.module_doc")
|
local scraper <const> = require("awesomewm-d-tl.scraper.module_doc")
|
||||||
|
|
||||||
local get_doc_from_page = scraper.get_doc_from_page
|
local get_doc_from_page = scraper.get_doc_from_page
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
return {
|
return {
|
||||||
include_dir = {
|
include_dir = {
|
||||||
"../src/awesomewm.d.tl",
|
"../src",
|
||||||
"../types",
|
"../types",
|
||||||
},
|
},
|
||||||
global_env_def = "busted",
|
global_env_def = "global_env_def",
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue