Methods
case
expect function
used to create expectations on a value.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
casecase(name: string, test: (expect:(value: any) -> Expectation) ->()) -> ()
expect function
used to create expectations on a value.
case("adds two numbers", function(expect)
local result = 2 + 3
expect(result).is(5)
end)
groupgroup(name: string, test: () ->()) -> ()
group("Math utilities", function()
case("adds numbers", function(expect)
expect(2 + 2).is(4)
end)
case("multiplies numbers", function(expect)
expect(3 * 4).is(12)
end)
end)
blobblob(name: string) -> Blob?
local data = test.blob("fixtures")
Was this page helpful?