Closed Lexicality closed 9 years ago
describe("foo", function() it("bar", function() local func = spy.new(function() end); func(); assert.spy(func).was_not.called(); end) end)
- 0 successes / 1 failure / 0 errors / 0 pending : 0.0 seconds Failure  .\tests\foobar_spec.lua @ 2 foo bar .\tests\foobar_spec.lua:5: Expected not to be called exactly nil time(s), but it was.
@Lexicality PR #86 fixes the error messages for was.called() and was_not.called(). Give it a try.
was.called()
was_not.called()