test: fix the after_each hook not getting called
When writing tests the `after_each` function was never getting called due to the `before_each` function getting called instead
This commit is contained in:
parent
b4d2673c71
commit
3e7cd988b5
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ _G.it = function(name, callback)
|
|||
local status, err = pcall(callback, context)
|
||||
local elapsed = (os.clock() * 1000) - time
|
||||
|
||||
call_hook "before_each"
|
||||
call_hook "after_each"
|
||||
|
||||
local prefix = "\x1B[42mPASS"
|
||||
global_context.total = global_context.total + 1
|
||||
|
|
|
|||
Loading…
Reference in a new issue