typemoq
typemoq copied to clipboard
Spec has no expectations
I'm using Dynamic Mocks, and when I have a spec which purely uses TypeMoq for verifying a function call (no Jasmine expect calls), the tests logs out an error complaining that the spec has no expectations. E.g. ERROR: 'Spec 'Name of test' has no expectations.'
Its not failing the test but once enough tests have built up without jasmine expects the console log can look pretty messy. Any idea of how to resolve this? Short of putting pointless expects in all the tests.