any-db-fake
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -7,3 +7,3 @@ var EventEmitter = require('events').EventEmitter | ||
query: function (text, params, callback) { | ||
var q = this._adapter.createQuery(text, params, callback) | ||
var q = this.adapter.createQuery(text, params, callback) | ||
process.nextTick(function () { | ||
@@ -18,4 +18,2 @@ if (q.callback) q.callback() | ||
query: {}, | ||
createQuery: function (text, params, callback) { | ||
@@ -39,6 +37,7 @@ if (typeof text == 'object') { | ||
var connection = extend(new EventEmitter, this.connection, { | ||
adapter: 'fake', | ||
_adapter: this | ||
adapter: this | ||
}) | ||
process.nextTick(cb.bind(null, null, connection)) | ||
if (cb) { | ||
process.nextTick(cb.bind(null, null, connection)) | ||
} | ||
return connection | ||
@@ -45,0 +44,0 @@ } |
{ | ||
"name": "any-db-fake", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Fake adapter factory for testing any-db related libraries", | ||
@@ -5,0 +5,0 @@ "main": "mock-adapter.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1604