You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The root cause is unknown. As a workaround, pass an empty backing object to the mock factory:
constmyMock=mock<MyType>('myMock');// ErrorconstmyMock=mock<MyType>('myMock',{});// No errorconstmyObject=mockInstance<MyType>('myObject');// ErrorconstmyObject=mockInstance<MyType>('myObject',{});// No error
The text was updated successfully, but these errors were encountered:
ngForm is not mocked by shallow-render. If your <input> components are wrapped by custom components, then those custom components are mocked and ngForm thinks that the form is empty, because it cannot see any actual <input> component.
This makes it pretty tricky to mock forms. Maybe one good way around this could be to tell shallow-render not to mock your low-level input components...
The following has been observed when omnimock mocks are passed as arguments to Angular template bindings:
The root cause is unknown. As a workaround, pass an empty backing object to the mock factory:
The text was updated successfully, but these errors were encountered: