datapumps
Version:
Node.js ETL (Extract, Transform, Load) toolkit for easy data import, export or transfer between systems.
15 lines (11 loc) • 329 B
text/coffeescript
require('should')
sinon = require('sinon')
MysqlMixin = require('../MysqlMixin')
describe 'MysqlMixin(connection)', ->
it 'should store connection in target object', ->
target = {}
connection =
query: ->
mixin = MysqlMixin connection
mixin target
target._mysql.connection.should.equal = connection