!fixup use DataModel instead of Model for all data based models
This commit is contained in:
parent
e026a7f52c
commit
ae2fb9dea0
|
@ -104,7 +104,7 @@ function createTestApp(testToken, done) {
|
|||
app.use(loopback.rest());
|
||||
app.enableAuth();
|
||||
|
||||
var TestModel = loopback.Model.extend('test', {}, {
|
||||
var TestModel = loopback.DataModel.extend('test', {}, {
|
||||
acls: [
|
||||
{
|
||||
principalType: "ROLE",
|
||||
|
|
|
@ -18,7 +18,7 @@ describe('security scopes', function () {
|
|||
|
||||
beforeEach(function() {
|
||||
var ds = this.ds = loopback.createDataSource({connector: loopback.Memory});
|
||||
testModel = loopback.Model.extend('testModel');
|
||||
testModel = loopback.DataModel.extend('testModel');
|
||||
ACL.attachTo(ds);
|
||||
Role.attachTo(ds);
|
||||
RoleMapping.attachTo(ds);
|
||||
|
|
|
@ -9,7 +9,7 @@ describe('Change', function(){
|
|||
Change = loopback.Change.extend('change');
|
||||
Change.attachTo(memory);
|
||||
|
||||
TestModel = loopback.Model.extend('chtest');
|
||||
TestModel = loopback.DataModel.extend('chtest');
|
||||
this.modelName = TestModel.modelName;
|
||||
TestModel.attachTo(memory);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue