chore: fix specs

This commit is contained in:
Aire-One 2023-09-03 20:33:47 +02:00
parent 6ee57456b9
commit 8d7ba519c4
4 changed files with 15 additions and 9 deletions

6
spec/global_env_def.tl Normal file
View File

@ -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")

View File

@ -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

View File

@ -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

View File

@ -1,7 +1,7 @@
return {
include_dir = {
"../src/awesomewm.d.tl",
"../src",
"../types",
},
global_env_def = "busted",
global_env_def = "global_env_def",
}