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
ArgumentError: Did not expect property `bar` to exist, got `undefined` in object
...
validationErrors: Map(1) {
'object' => Set(1) {
'Did not expect property `bar` to exist, got `undefined` in object'
}
}
Expected behavior:
Even though I understand that there's a difference between those two objects:
constobj1={};constobj2={bar: undefined};
I believe that for the purposes of argument validation they are the same and the error message "Did not expect property bar to exist, got undefined in object" does not make sense to me. I would expect the original code to not throw.
If accepted as a bug, I can do the PR to fix it. Thanks.
The text was updated successfully, but these errors were encountered:
What happens:
Throws:
Expected behavior:
Even though I understand that there's a difference between those two objects:
I believe that for the purposes of argument validation they are the same and the error message "Did not expect property
bar
to exist, gotundefined
in object" does not make sense to me. I would expect the original code to not throw.If accepted as a bug, I can do the PR to fix it. Thanks.
The text was updated successfully, but these errors were encountered: