Greetings everyone
I want to test some files using ubus in my local machine(ubuntu) The script uses:-
ubus_lib = require('ubus')
ubus = ubus_lib.connect()
data = ubus:call(something)
This script is loaded in another module, ubus was giving nil, that's why I try to mock it using package.loaded...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.