Earlier Versions
Name | Size | Uploaded | Game Version | Downloads | |
1.07 release | 60.47 KB | Apr 11, 2019 | 8.1.5 | 52 | ![]() |
1.06 release | 59.90 KB | Apr 9, 2019 | 8.1.5 | 15 | ![]() |
Description
West
West is a testing libary for World of Warcraft addons.
if not __WEST_LIB__ then return end
local West = __WEST_LIB__()
West.describe("math tests", function(it)
it("adds numbers", function(expect)
expect(add(1, 2)).toBe(3)
end)
-- more tests...
end)
West.it("returns a table", function(expect)
local value = foo()
expect(value).toBeDefined()
expect(type(value)).toBe("table")
end)
-- ...
West.run()
Getting Started
View on GitHub.
Add a comment