Skip to content

Commit 3db5a04

Browse files
committed
Tests: Add geterrorhandler to the environment
AceLocale calls this if there's a missing entry in the localization table (useful for detecting typos and similar oversights). Without assigning an error handler, the tests still fail, but the error message won't be relayed.
1 parent ebf7b44 commit 3db5a04

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Tests/WOWAPI.lua

+5
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,8 @@ end
5555
_G.GetLocale = function()
5656
return "enUS" -- For now...
5757
end
58+
59+
-- Don't need a custom one; it just has to fail the tests when executed
60+
_G.geterrorhandler = function()
61+
return error
62+
end

0 commit comments

Comments
 (0)