Skip to content
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

mockComponent fails silently if node is passed instead of RoAssocArray #651

Open
underwoo16 opened this issue May 5, 2021 · 0 comments
Open

Comments

@underwoo16
Copy link
Contributor

_brs_.mockComponent is meant to receive an assocarray:

_brs_.mockComponent("MyComponent", {})

but if you accidentally pass in a node because you forgot:
_brs_.mockComponent("MyComponent", createObject("roSGNode", "Node"))

it fails silently and when code is executed to create MyComponent:
createObject("roSGNode", "MyComponent")

the real implementation of the component is returned instead of a mock, with no logs or anything indicating the mock did not work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant