We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5bb0bb commit f322ceeCopy full SHA for f322cee
1 file changed
test/dashdb.dml.test.js
@@ -46,14 +46,11 @@ describe('dml', function() {
46
const rec = {aFloat: 42.234567};
47
before(createRecInFP(rec));
48
49
- it('should fail with a specific SQL error', function(done) {
50
- FloatingPoint.updateAll(rec, {aFloat: 42.234567890123456789},
51
- function(err, info) {
52
- if (err) {
53
- err.state.should.be.eql('HY094');
54
- done();
55
- }
56
- });
+ it('should fail with a specific SQL error', async function() {
+ await FloatingPoint.updateAll(rec, {aFloat: 42.234567890123456789})
+ .should.be.rejectedWith(
+ '[IBM][CLI Driver] CLI0135E Invalid scale value. SQLSTATE=HY094',
+ );
57
});
58
59
0 commit comments