fixup! chore(spec): defined expected with type safety
This commit is contained in:
parent
f324e9e303
commit
9fdbbe2096
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue