!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.use(loopback.rest());
|
||||||
app.enableAuth();
|
app.enableAuth();
|
||||||
|
|
||||||
var TestModel = loopback.Model.extend('test', {}, {
|
var TestModel = loopback.DataModel.extend('test', {}, {
|
||||||
acls: [
|
acls: [
|
||||||
{
|
{
|
||||||
principalType: "ROLE",
|
principalType: "ROLE",
|
||||||
|
|
|
@ -18,7 +18,7 @@ describe('security scopes', function () {
|
||||||
|
|
||||||
beforeEach(function() {
|
beforeEach(function() {
|
||||||
var ds = this.ds = loopback.createDataSource({connector: loopback.Memory});
|
var ds = this.ds = loopback.createDataSource({connector: loopback.Memory});
|
||||||
testModel = loopback.Model.extend('testModel');
|
testModel = loopback.DataModel.extend('testModel');
|
||||||
ACL.attachTo(ds);
|
ACL.attachTo(ds);
|
||||||
Role.attachTo(ds);
|
Role.attachTo(ds);
|
||||||
RoleMapping.attachTo(ds);
|
RoleMapping.attachTo(ds);
|
||||||
|
|
|
@ -9,7 +9,7 @@ describe('Change', function(){
|
||||||
Change = loopback.Change.extend('change');
|
Change = loopback.Change.extend('change');
|
||||||
Change.attachTo(memory);
|
Change.attachTo(memory);
|
||||||
|
|
||||||
TestModel = loopback.Model.extend('chtest');
|
TestModel = loopback.DataModel.extend('chtest');
|
||||||
this.modelName = TestModel.modelName;
|
this.modelName = TestModel.modelName;
|
||||||
TestModel.attachTo(memory);
|
TestModel.attachTo(memory);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue