Remove juggler references

This commit is contained in:
Simon Ho 2016-01-29 16:19:37 -08:00
parent 37654efc62
commit 83b871ad7c
5 changed files with 10 additions and 13 deletions

View File

@ -5,7 +5,7 @@ var crypto = require('crypto');
/**
* Initialize the Transient connector against the given data source
*
* @param {DataSource} dataSource The loopback-datasource-juggler dataSource
* @param {DataSource} dataSource The data source
* @param {Function} [callback] The callback function
*/
exports.initialize = function initializeDataSource(dataSource, callback) {

View File

@ -26,7 +26,6 @@
"devDependencies": {
"chai": "~2.3.0",
"jshint": "^2.7.0",
"loopback-datasource-juggler": "^2.29.0",
"mocha": "^2.2.5"
}
}

View File

@ -1,8 +1,8 @@
var DataSource = require('..').DataSource;
var expect = require('chai').expect;
var testConnector = require('./connectors/test-sql-connector');
var juggler = require('loopback-datasource-juggler');
var ds = new juggler.DataSource({
var ds = new DataSource({
connector: testConnector,
debug: true
});

View File

@ -1,10 +1,10 @@
var DataSource = require('..').DataSource;
var expect = require('chai').expect;
var SQLConnector = require('../lib/sql');
var ParameterizedSQL = SQLConnector.ParameterizedSQL;
var testConnector = require('./connectors/test-sql-connector');
var juggler = require('loopback-datasource-juggler');
var ds = new juggler.DataSource({
var ds = new DataSource({
connector: testConnector,
debug: true
});

View File

@ -1,17 +1,15 @@
var Transaction = require('../index').Transaction;
var DataSource = require('..').DataSource;
var expect = require('chai').expect;
var testConnector = require('./connectors/test-sql-connector');
var Transaction = require('../index').Transaction;
var juggler = require('loopback-datasource-juggler');
var db, Post;
var db;
var Post;
var Review;
describe('transactions', function() {
before(function(done) {
db = new juggler.DataSource({
db = new DataSource({
connector: testConnector,
debug: true
});