Remove legacy Schema references

This commit is contained in:
Fabien Franzen 2014-09-04 18:01:04 +02:00
parent 7b788a2903
commit 830a3f6f1a
2 changed files with 3 additions and 4 deletions

View File

@ -1,7 +1,7 @@
// This test written in mocha+should.js
var should = require('./init.js');
var jdb = require('../');
var Schema = jdb.Schema;
var DataSource = jdb.DataSource;
var db, tmp, Book, Chapter, Author, Reader;
var Category, Job;
@ -10,7 +10,7 @@ var Person, Address;
var Link;
var getTransientDataSource = function(settings) {
return new Schema('transient', settings, db.modelBuilder);
return new DataSource('transient', settings, db.modelBuilder);
};
describe('relations', function () {

View File

@ -1,5 +1,4 @@
var jdb = require('../');
var Schema = jdb.Schema;
var DataSource = jdb.DataSource;
var assert = require('assert');
var async = require('async');
@ -8,7 +7,7 @@ var should = require('./init.js');
var db, TransientModel, Person, Widget, Item;
var getTransientDataSource = function(settings) {
return new Schema('transient', settings);
return new DataSource('transient', settings);
};
describe('Transient connector', function () {