mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 00:07:07 +00:00
adding test for new constructor
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user