Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
print out error message in test
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphtheninja committed Oct 4, 2018
1 parent e2c01aa commit f2c47c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/open.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ test('open', t => {
t.end()
})

t.test('> autoconfigure', t => {
t.test('> autoconfigure (using invalid password)', t => {
t.plan(2)
dc.on('DC_EVENT_INFO', info => {
if (info.startsWith('Got autoconfig:')) {
t.pass('Got autoconfig!')
}
})
dc.once('DC_EVENT_ERROR', (code, error) => {
t.pass('Got _some_ error (either can\'t connect or can\'t login)')
t.pass(`Got _some_ error: ${code}, ${error}`)
})
dc.configure({
addr: 'hpk2@hq5.merlinux.eu',
Expand Down

0 comments on commit f2c47c3

Please sign in to comment.