-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
67 changed files
with
963 additions
and
886 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
semi: false | ||
singleQuote: true | ||
trailingComma: all | ||
printWidth: 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
|
||
exports.testProperties = function (adapter, assert) { | ||
exports.testProperties = function(adapter, assert) { | ||
assert.equal(typeof adapter.name, 'string', 'adapter.name is a string') | ||
assert.equal(typeof adapter.createConnection, 'function', 'adapter.createConnection is a function') | ||
assert.equal( | ||
typeof adapter.createConnection, | ||
'function', | ||
'adapter.createConnection is a function', | ||
) | ||
assert.equal(typeof adapter.createQuery, 'function', 'adapter.createQuery is a function') | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
exports.Adapter = require('./adapter') | ||
exports.Query = require('./query') | ||
exports.Queryable = require('./queryable') | ||
exports.Adapter = require('./adapter') | ||
exports.Query = require('./query') | ||
exports.Queryable = require('./queryable') | ||
exports.Connection = require('./connection') | ||
exports.ResultSet = require('./result-set') | ||
exports.ResultSet = require('./result-set') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
var EventEmitter = require('events').EventEmitter | ||
|
||
exports.testProperties = function (query, assert) { | ||
assert.ok(query instanceof EventEmitter, "query is an EventEmitter") | ||
assert.equal(typeof query.text, 'string', 'query.text is a string') | ||
assert.equal(typeof query.values, 'object', 'query.values is an object') | ||
assert.equal(typeof query.pause, 'function', 'query.pause is a function') | ||
exports.testProperties = function(query, assert) { | ||
assert.ok(query instanceof EventEmitter, 'query is an EventEmitter') | ||
assert.equal(typeof query.text, 'string', 'query.text is a string') | ||
assert.equal(typeof query.values, 'object', 'query.values is an object') | ||
assert.equal(typeof query.pause, 'function', 'query.pause is a function') | ||
assert.equal(typeof query.resume, 'function', 'query.resume is a function') | ||
if (query.callback) assert.equal(typeof query.callback, 'function', | ||
'query.callback is a function') | ||
if (query.callback) | ||
assert.equal(typeof query.callback, 'function', 'query.callback is a function') | ||
} |
Oops, something went wrong.