feat(user): Added mnemonic to user model

This commit is contained in:
Daniel Gonzalez
2025-04-24 12:45:55 -04:00
parent 1a5dadbf35
commit cf2f2af90f
6 changed files with 60 additions and 4 deletions
+3 -1
View File
@@ -173,6 +173,7 @@ if (!config.noMongo) {
)
assert.property(result.data, 'token', 'Token property exists.')
assert.equal(result.data.user.type, 'user')
assert.property(result.data.user, 'mnemonic')
})
})
@@ -265,7 +266,7 @@ if (!config.noMongo) {
const users = result.data.users
// console.log(`users: ${util.inspect(users)}`)
assert.hasAnyKeys(users[0], ['type', '_id', 'email'])
assert.hasAnyKeys(users[0], ['type', '_id', 'email', 'mnemonic'])
assert.isNumber(users.length)
})
@@ -375,6 +376,7 @@ if (!config.noMongo) {
assert.property(user, 'type')
assert.property(user, 'email')
assert.property(user, 'mnemonic')
assert.property(user, '_id')
assert.equal(user._id, _id)