// SQLite doesn't have a breakdown of error codes, so we are unable to discern between the different types of errors.
// SQLite doesn't have a breakdown of error codes, so we are unable to discern between the different types of errors.
returnexpect(seq.query('select 1 as hello')).to.eventually.be.rejectedWith(seq.ConnectionError,'SQLITE_CANTOPEN: unable to open database file').notify(done)
returnexpect(seq.query('select 1 as hello')).to.eventually.be.rejectedWith(seq.ConnectionError,'SQLITE_CANTOPEN: unable to open database file')
}else{
}else{
returnexpect(seq.query('select 1 as hello')).to.eventually.be.rejectedWith(seq.InvalidConnectionError,'connect EINVAL').notify(done)
returnexpect(seq.query('select 1 as hello')).to.eventually.be.rejectedWith(seq.InvalidConnectionError,'connect EINVAL')
}
}
})
})
it('when we don\'t have the correct login information',function(done){
it('when we don\'t have the correct login information',function(){