mirror of
https://github.com/Permissionless-Software-Foundation/bch-email-api.git
synced 2026-09-21 16:52:04 -07:00
getting data from postgres successfully
This commit is contained in:
+22
-21
@@ -22,31 +22,32 @@ describe('#iRedMail', () => {
|
||||
if (process.env.TEST_ENV === 'integration') {
|
||||
testType = 'integration'
|
||||
|
||||
iRedMail = new IRedMail()
|
||||
await iRedMail.sequelize.authenticate()
|
||||
// iRedMail = new IRedMail()
|
||||
// await iRedMail.sequelize.authenticate()
|
||||
}
|
||||
})
|
||||
|
||||
describe('#createUser', () => {
|
||||
it('should get database models', async () => {
|
||||
try {
|
||||
console.log(`Hello world!`)
|
||||
/*
|
||||
const options = {
|
||||
method: 'POST',
|
||||
uri: `${LOCALHOST}/iredmail/adduser`,
|
||||
resolveWithFullResponse: true,
|
||||
json: true,
|
||||
body: {
|
||||
}
|
||||
}
|
||||
if (process.env.TEST_ENV === 'integration') {
|
||||
it('should get database models', async () => {
|
||||
try {
|
||||
// console.log(`Hello world!`)
|
||||
|
||||
let result = await rp(options)
|
||||
console.log(`result: ${util.inspect(result)}`)
|
||||
*/
|
||||
} catch (err) {
|
||||
console.log(`Error in #createUser test: `, err)
|
||||
}
|
||||
})
|
||||
const options = {
|
||||
method: 'POST',
|
||||
uri: `${LOCALHOST}/iredmail/adduser`,
|
||||
resolveWithFullResponse: true,
|
||||
json: true,
|
||||
body: {
|
||||
}
|
||||
}
|
||||
|
||||
let result = await rp(options)
|
||||
console.log(`result: ${util.inspect(result.body)}`)
|
||||
} catch (err) {
|
||||
console.log(`Error in #createUser test: `, err)
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user