Fix manually
This commit is contained in:
parent
a1683fca59
commit
e038b28e8c
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
var DataSource = require('../../loopback-datasource-juggler').DataSource;
|
||||
var ModelBuilder = require('../../loopback-datasource-juggler').ModelBuilder;
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
var ModelBuilder = require('../../loopback-datasource-juggler').ModelBuilder;
|
||||
var modelBuilder = new ModelBuilder();
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
var DataSource = require('../../loopback-datasource-juggler').DataSource;
|
||||
var ModelBuilder = require('../../loopback-datasource-juggler').ModelBuilder;
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
var jdb = require('../index');
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
var path = require('path'),
|
||||
fs = require('fs'),
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
var ModelBuilder = require('../../loopback-datasource-juggler').ModelBuilder;
|
||||
var modelBuilder = new ModelBuilder();
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
var DataSource = require('../index').DataSource;
|
||||
var ds = new DataSource('memory');
|
||||
|
|
1
index.js
1
index.js
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
var SG = require('strong-globalize');
|
||||
SG.SetRootDir(__dirname);
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
// A lightweight alternative to "depd" that works in the browser
|
||||
module.exports = function depd(namespace) {
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
var g = require('strong-globalize')();
|
||||
var util = require('util');
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
var g = require('strong-globalize')();
|
||||
var util = require('util');
|
||||
|
|
|
@ -3,6 +3,10 @@
|
|||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
|
||||
// Turning on strict for this file breaks lots of test cases;
|
||||
// disabling strict for this file
|
||||
/* eslint-disable strict */
|
||||
|
||||
/*!
|
||||
* Module exports class Model
|
||||
*/
|
||||
|
|
|
@ -3,6 +3,10 @@
|
|||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
|
||||
// Turning on strict for this file breaks lots of test cases;
|
||||
// disabling strict for this file
|
||||
/* eslint-disable strict */
|
||||
|
||||
/*!
|
||||
* Module dependencies
|
||||
*/
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
var assert = require('assert');
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
var deprecated = require('depd')('loopback-datasource-juggler');
|
||||
var g = require('strong-globalize')();
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
var async = require('async');
|
||||
var g = require('strong-globalize')();
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
module.exports.buildOneToOneIdentityMapWithOrigKeys = buildOneToOneIdentityMapWithOrigKeys;
|
||||
module.exports.buildOneToManyIdentityMapWithOrigKeys = buildOneToManyIdentityMapWithOrigKeys;
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
module.exports = function getIntrospector(ModelBuilder) {
|
||||
function introspectType(value) {
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
var util = require('util');
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
var g = require('strong-globalize')();
|
||||
var util = require('util');
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
var debug = require('debug')('loopback:mixin');
|
||||
var assert = require('assert');
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
/*!
|
||||
* Module dependencies
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
var assert = require('assert');
|
||||
var util = require('util');
|
||||
|
|
|
@ -3,6 +3,10 @@
|
|||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
|
||||
// Turning on strict for this file breaks lots of test cases;
|
||||
// disabling strict for this file
|
||||
/* eslint-disable strict */
|
||||
|
||||
/*!
|
||||
* Module exports class Model
|
||||
*/
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
var async = require('async');
|
||||
var utils = require('./utils');
|
||||
|
|
|
@ -3,6 +3,10 @@
|
|||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
|
||||
// Turning on strict for this file breaks lots of test cases;
|
||||
// disabling strict for this file
|
||||
/* eslint-disable strict */
|
||||
|
||||
/*!
|
||||
* Dependencies
|
||||
*/
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
/*!
|
||||
* Dependencies
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
/*eslint-disable camelcase*/
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
var g = require('strong-globalize')();
|
||||
var debug = require('debug')('loopback:connector:transaction');
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
var Types = {};
|
||||
/**
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
exports.safeRequire = safeRequire;
|
||||
exports.fieldsToArray = fieldsToArray;
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
var g = require('strong-globalize')();
|
||||
var util = require('util');
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
var should = require('./init.js');
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
var ModelBuilder = require('../').ModelBuilder;
|
||||
var should = require('./init');
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
// This test written in mocha+should.js
|
||||
var should = require('./init.js');
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
require('./datatype.test.js');
|
||||
require('./basic-querying.test.js');
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
var Schema = require('../index').Schema;
|
||||
var Text = Schema.Text;
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
// This test written in mocha+should.js
|
||||
var should = require('./init.js');
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
var should = require('./init.js');
|
||||
var DataSource = require('../lib/datasource.js').DataSource;
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
// This test written in mocha+should.js
|
||||
var should = require('./init.js');
|
||||
|
@ -11,7 +12,7 @@ var db, Model;
|
|||
describe('datatypes', function() {
|
||||
before(function(done) {
|
||||
db = getSchema();
|
||||
Nested = db.define('Nested', {});
|
||||
var Nested = db.define('Nested', {});
|
||||
|
||||
Model = db.define('Model', {
|
||||
str: String,
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
// This test written in mocha+should.js
|
||||
var should = require('./init.js');
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
// This test written in mocha+should.js
|
||||
var should = require('./init.js');
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
var jdb = require('../');
|
||||
var DataSource = jdb.DataSource;
|
||||
|
@ -436,7 +437,7 @@ describe('discoverModelProperties', function() {
|
|||
|
||||
describe('discoverPrimaryKeys', function() {
|
||||
var ds;
|
||||
var modelProperties;
|
||||
var modelProperties, primaryKeys;
|
||||
before(function() {
|
||||
ds = new DataSource({connector: 'memory'});
|
||||
|
||||
|
@ -496,7 +497,7 @@ describe('discoverPrimaryKeys', function() {
|
|||
|
||||
describe('discoverForeignKeys', function() {
|
||||
var ds;
|
||||
var modelProperties;
|
||||
var modelProperties, foreignKeys;
|
||||
before(function() {
|
||||
ds = new DataSource({connector: 'memory'});
|
||||
|
||||
|
@ -553,7 +554,7 @@ describe('discoverForeignKeys', function() {
|
|||
|
||||
describe('discoverExportedForeignKeys', function() {
|
||||
var ds;
|
||||
var modelProperties;
|
||||
var modelProperties, exportedForeignKeys;
|
||||
before(function() {
|
||||
ds = new DataSource({connector: 'memory'});
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
var should = require('./init.js');
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
/*global describe,it*/
|
||||
/*jshint expr:true */
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
var traverse = require('traverse');
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
module.exports = HookMonitor;
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
var lastId = 0;
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
// This test written in mocha+should.js
|
||||
var should = require('./init.js');
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
// This test written in mocha+should.js
|
||||
var should = require('./init.js');
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
/* eslint-disable camelcase */
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
module.exports = require('should');
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
var assert = require('assert');
|
||||
var ModelBuilder = require('..').ModelBuilder;
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
// This test written in mocha+should.js
|
||||
var should = require('./init.js');
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use strict';
|
||||
|
||||
var kvMemory = require('../lib/connectors/kv-memory');
|
||||
var DataSource = require('..').DataSource;
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
// This test written in mocha+should.js
|
||||
var should = require('./init.js');
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
// This test written in mocha+should.js
|
||||
var should = require('./init.js');
|
||||
|
@ -574,7 +575,7 @@ describe('DataSource define model', function() {
|
|||
|
||||
it('should update the instance with unknown properties', function(done) {
|
||||
var ds = new DataSource('memory');// define models
|
||||
Post = ds.define('Post', {
|
||||
var Post = ds.define('Post', {
|
||||
title: {type: String, length: 255, index: true},
|
||||
content: {type: String},
|
||||
});
|
||||
|
@ -1558,17 +1559,17 @@ describe('DataAccessObject', function() {
|
|||
});
|
||||
|
||||
it('should normalize limit/offset/skip', function() {
|
||||
filter = model._normalize({limit: '10', skip: 5});
|
||||
var filter = model._normalize({limit: '10', skip: 5});
|
||||
assert.deepEqual(filter, {limit: 10, offset: 5, skip: 5});
|
||||
});
|
||||
|
||||
it('should set the default value for limit', function() {
|
||||
filter = model._normalize({skip: 5});
|
||||
var filter = model._normalize({skip: 5});
|
||||
assert.deepEqual(filter, {limit: 100, offset: 5, skip: 5});
|
||||
});
|
||||
|
||||
it('should apply settings for handling undefined', function() {
|
||||
filter = model._normalize({filter: {x: undefined}});
|
||||
var filter = model._normalize({filter: {x: undefined}});
|
||||
assert.deepEqual(filter, {filter: {}});
|
||||
|
||||
ds.settings.normalizeUndefinedInQuery = 'ignore';
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
// This test written in mocha+should.js
|
||||
var async = require('async');
|
||||
|
@ -50,7 +51,7 @@ describe('manipulation', function() {
|
|||
});
|
||||
|
||||
beforeEach(function resetStubPasswordCounter() {
|
||||
stubPasswordCounter = 0;
|
||||
var stubPasswordCounter = 0;
|
||||
});
|
||||
|
||||
describe('create', function() {
|
||||
|
@ -1950,7 +1951,7 @@ describe('manipulation', function() {
|
|||
});
|
||||
|
||||
it('fails the upsertWithWhere operation when data object is empty', function(done) {
|
||||
options = {};
|
||||
var options = {};
|
||||
Person.upsertWithWhere({name: 'John Lennon'}, {}, options,
|
||||
function(err) {
|
||||
err.message.should.equal('data object cannot be empty!');
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
var jdb = require('../');
|
||||
var DataSource = jdb.DataSource;
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
// This test written in mocha+should.js
|
||||
var should = require('./init.js');
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
// This test written in mocha+should.js
|
||||
var should = require('./init.js');
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
var ValidationError = require('../..').ValidationError;
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
var Promise = require('bluebird');
|
||||
var ValidationError = require('../..').ValidationError;
|
||||
|
@ -46,7 +47,7 @@ module.exports = function(dataSource, should, connectorCapabilities) {
|
|||
}
|
||||
});
|
||||
|
||||
var ownerInstance, existingInstance;
|
||||
var ownerInstance, existingInstance, existingItem;
|
||||
beforeEach(function setupData() {
|
||||
return Owner.create({})
|
||||
.then(function(inst) {
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
var Promise = require('bluebird');
|
||||
var ValidationError = require('../..').ValidationError;
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
var ValidationError = require('../..').ValidationError;
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
var ValidationError = require('../..').ValidationError;
|
||||
|
||||
|
@ -45,7 +46,7 @@ module.exports = function(dataSource, should, connectorCapabilities) {
|
|||
}
|
||||
});
|
||||
|
||||
var ownerInstance, existingInstance;
|
||||
var ownerInstance, existingInstance, existingItem;
|
||||
beforeEach(function setupData() {
|
||||
return Owner.create({})
|
||||
.then(function(inst) {
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
var ValidationError = require('../..').ValidationError;
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use strict';
|
||||
|
||||
var debug = require('debug')('test');
|
||||
var fs = require('fs');
|
||||
var path = require('path');
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
// This test written in mocha+should.js
|
||||
var async = require('async');
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
var ValidationError = require('../').ValidationError;
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
// This test written in mocha+should.js
|
||||
var should = require('./init.js');
|
||||
|
@ -3828,7 +3829,7 @@ describe('relations', function() {
|
|||
// This test spefically uses the Memory connector
|
||||
// in order to test the use of the auto-generated
|
||||
// id, in the sequence of the related model.
|
||||
|
||||
var Passport;
|
||||
before(function() {
|
||||
db = getMemoryDataSource();
|
||||
Person = db.define('Person', {name: String});
|
||||
|
@ -3879,6 +3880,7 @@ describe('relations', function() {
|
|||
});
|
||||
|
||||
describe('embedsOne - generated id', function() {
|
||||
var Passport;
|
||||
before(function() {
|
||||
tmp = getTransientDataSource();
|
||||
// db = getSchema();
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
// This test written in mocha+should.js
|
||||
var should = require('./init.js');
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
// This test written in mocha+should.js
|
||||
var should = require('./init.js');
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
/* eslint-disable camelcase */
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
var jdb = require('../');
|
||||
var DataSource = jdb.DataSource;
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
var should = require('./init.js');
|
||||
var utils = require('../lib/utils');
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Node module: loopback-datasource-juggler
|
||||
// This file is licensed under the MIT License.
|
||||
// License text available at https://opensource.org/licenses/MIT
|
||||
'use strict';
|
||||
|
||||
// This test written in mocha+should.js
|
||||
var should = require('./init.js');
|
||||
|
|
Loading…
Reference in New Issue