mirror of
https://github.com/knex/knex.git
synced 2025-09-30 18:47:36 +00:00
23 lines
448 B
JavaScript
23 lines
448 B
JavaScript
![]() |
module.exports = function(client) {
|
||
|
|
||
|
var Transaction = require('../../lib/transaction').Transaction;
|
||
|
|
||
|
describe('Transaction', function () {
|
||
|
|
||
|
describe('Constructor', function() {
|
||
|
|
||
|
it('saves the current client off the knex instance', function() {
|
||
|
|
||
|
var knex = {client: {name: 'mysql'}};
|
||
|
|
||
|
var transaction = new Transaction(knex);
|
||
|
|
||
|
assert(transaction.client).should.eql(knex.client);
|
||
|
|
||
|
});
|
||
|
|
||
|
});
|
||
|
|
||
|
});
|
||
|
|
||
|
};
|