diff --git a/test/access-token.test.js b/test/access-token.test.js index 0ac52b49..de5f030b 100644 --- a/test/access-token.test.js +++ b/test/access-token.test.js @@ -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", diff --git a/test/acl.test.js b/test/acl.test.js index 488638e7..f5958187 100644 --- a/test/acl.test.js +++ b/test/acl.test.js @@ -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); diff --git a/test/change.test.js b/test/change.test.js index fbc24739..d570f509 100644 --- a/test/change.test.js +++ b/test/change.test.js @@ -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); });