Testing using SAFE_FAKE_AUTH. There are potentially pieces of functions that are only engaged in non-testing environment, otherwise, everything is working so far.
Just need to figure out how to successfully refactor setupAccount. Not sure how this works:
.then((encryptedAddr) => pubNamesMd.decrypt(encryptedAddr.buf)
.then((servicesXorName) => createEmailService(app, servicesXorName, serviceInfo))
, (err) => { // ...if not then create it
if (err.code !== SAFE_APP_ERROR_CODES.ERR_NO_SUCH_ENTRY) {
throw err;
}
Testing using
SAFE_FAKE_AUTH
. There are potentially pieces of functions that are only engaged in non-testing environment, otherwise, everything is working so far.Just need to figure out how to successfully refactor
setupAccount
. Not sure how this works: