Open GoogleCodeExporter opened 8 years ago
First, mockito does js?
Second, what does mockito throw on failure?
Original comment by corbinrs...@gmail.com
on 14 Mar 2012 at 5:03
First: Yes; http://jsmockito.org/
Second: the verify functionality for their mocks will throw something along the
lines of: "Wanted but not invoked: obj.submitOrder(<anything>, <anything>)",
where I've mocked out obj. In my test I am running
verify(obj).submitOrder(anything(), anything()). Normally, with jstestDriver
1.3.2, if that function has not been called, verify will spit out the error
"Wanted but not invoked: obj.submitOrder(<anything>, <anything>)". When I try
doing this same operation with 1.3.4.b, all test running seems to halt with no
output besides:
Total 0 tests (Passed: 0; Fails: 0; Errors: 0) (180.00 ms).
If i fix my test (doing TDD), then I get the usual:
......................................................................
......................................................................
......................................................................
......................................................................
.............................................
Total 325 tests (Passed: 325; Fails: 0; Errors: 0) (776.00 ms)
Chrome 17.0.963.78 Linux: Run 325 tests (Passed: 325; Fails: 0; Errors 0) (776.00 ms)
Does that help?
Original comment by jeramie....@gmail.com
on 14 Mar 2012 at 6:33
Original issue reported on code.google.com by
jeramie....@gmail.com
on 14 Mar 2012 at 4:46