[Bug]: If dependency cannot be found inside the map, __restore should return void
jlenon7 opened this issue · 0 comments
jlenon7 commented
Version
1.3.1
Steps to reproduce
Call Facade.__restore('not-found')
in a method that is not mocked.
Expected behavior
I expect that the __restore
method returns void and do not throw errors.
Actual behavior
The __restore
method will set the method prototype as undefined
in the provider.
Additional context
No response
Environment
System:
OS: Linux 5.14 Ubuntu 20.04.5 LTS (Focal Fossa)
CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-1145G7 @ 2.60GHz
Memory: 6.19 GB / 15.03 GB
Container: Yes
Shell: 5.8 - /usr/bin/zsh
Binaries:
Node: 16.18.0 - ~/.nvm/versions/node/v16.18.0/bin/node
npm: 8.19.2 - ~/.nvm/versions/node/v16.18.0/bin/npm