return right failure code
return right failure code

tests from tests/main.js passed in my run

GillesC/cordova-plugin-nativestorage,GillesC/cordova-plugin-nativestorage,TheCocoaProject/cordova-plugin-nativestorage,TheCocoaProject/cordova-plugin-nativestorage