adding test for new constructor

This commit is contained in:
Joel Spriggs
2018-11-21 12:20:25 -05:00
parent 3564a9defa
commit 9203ef2f42
+10
View File
@@ -189,6 +189,16 @@ function test_request_constructor() {
var request4 = new sql.Request();
}
function test_prepared_statement_constructor() {
// Request can be constructed with a connection, preparedStatment, transaction or no arguments
var connection: sql.ConnectionPool = new sql.ConnectionPool(config);
var preparedStatment = new sql.PreparedStatement(connection);
var transaction = new sql.Transaction(connection);
var preparedSatement1 = new sql.PreparedStatement(connection);
var preparedSatement2 = new sql.PreparedStatement(transaction);
}
function test_classes_extend_eventemitter() {
var connection: sql.ConnectionPool = new sql.ConnectionPool(config);
var transaction = new sql.Transaction();