New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mock as iterable object #9
Comments
Same here with an angular 8.x app:
|
Hey Can you tell me what it was doing here - at _ValueOutputAstTransformer.visitStringMap (../packages/compiler/src/output/value_util.ts:29:23) ? I.e |
I think he is here: https://github.com/angular/angular/blob/8.2.x/packages/compiler/src/output/value_util.ts#L29 it is happening, when i mock an angular service implementation. plain objects are working fine |
This should be fixed in #13. Anyone able to try this? |
This still errors in 1.0.8:
|
@jfemia that's the exact error I'm getting. And I really, really, really would like to find a way to mock my interfaces rather than being forced to create a dummy object and then mocking that. |
Angular services still not working in 1.0.9 TypeError: function is not iterable (cannot read property Symbol(Symbol.iterator)) Created #43 to track this problem explicitly |
I'm getting similar behavior with |
Hello
I had problem with expect(mock).toEqual(mock), because in a method toEqual be call iterator for the mock and own mock return not correct data for an iterator. You can see more information in https://medium.com/front-end-weekly/thank-u-symbol-iterator-next-aef9f09ff78. I used expect(mock.property).toEqual(mock.property)
Example Error:
The text was updated successfully, but these errors were encountered: