fixup! chore(spec): defined expected with type safety
ci/woodpecker/pr/docker-build Pipeline was successful Details
ci/woodpecker/pr/lint Pipeline was successful Details
ci/woodpecker/pr/build Pipeline was successful Details
ci/woodpecker/pr/test Pipeline was successful Details

This commit is contained in:
Aire-One 2023-05-08 23:50:19 +02:00
parent f324e9e303
commit 9fdbbe2096
1 changed files with 2 additions and 3 deletions

View File

@ -7,7 +7,7 @@ local get_doc_from_page = scraper.get_doc_from_page
describe("Scrap documentation", function()
it("should return a valid AST for an empty module", function()
local ast <const>, nodes <const> = get_doc_from_page("", "empty")
assert.same(ast, {
local expected <const>: Node = {
children = {
{
children = {},
@ -17,8 +17,7 @@ describe("Scrap documentation", function()
},
name = "Empty",
token = "module",
})
local expected <const>: Node = {}
}
assert.same(expected, ast)
assert.same({}, nodes)
end)