mirror of
https://github.com/knex/knex.git
synced 2025-07-22 00:11:20 +00:00
19 lines
416 B
JavaScript
19 lines
416 B
JavaScript
![]() |
'use strict';
|
||
|
|
||
|
var tape = require('tape')
|
||
|
var makeKnex = require('../../knex')
|
||
|
var knexfile = require('../knexfile')
|
||
|
|
||
|
Object.keys(knexfile).forEach(function(key) {
|
||
|
|
||
|
var knex = makeKnex(knexfile[key])
|
||
|
require('./transactions')(knex)
|
||
|
|
||
|
// Tear down the knex connection
|
||
|
tape(knex.client.driverName + ' - transactions: after', function(t) {
|
||
|
knex.destroy().then(function() {
|
||
|
t.end()
|
||
|
})
|
||
|
})
|
||
|
|
||
|
})
|