Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('58.1.9 connectionClass', function() {
var t = oracledb.connectionClass;
oracledb.connectionClass = 'DEVPOOL';
var cclass = oracledb.connectionClass;
should.equal(t, '');
should.strictEqual(cclass, 'DEVPOOL');
});
it('58.1.26 edition', function() {
var t = oracledb.edition;
oracledb.edition = 'foobar';
var e = oracledb.edition;
should.equal(t, '');
should.strictEqual(e, 'foobar');
});
helperNode1.on("input", function(msg) {
try {
if (shouldReceive === true) {
should.equal(msg.payload,sendPayload);
done();
} else {
should.fail(null, null, "We should never get an input!");
}
} catch(err) {
done(err);
}
});
switchNode1.receive({payload:sendPayload});
conn.execQuery('SELECT count(*) FROM ??', ['orm_migrations'], function(err, result){
should.equal(result[0]['count'] || result[0]['count(*)'], 1);
done();
});
})
conn.execQuery('SELECT count(*) FROM ??', ['orm_migrations'], function(err, result){
should.equal(result[0]['count'] || result[0]['count(*)'], 1);
done();
});
})