From ae2fb9dea03d38303bf601128eefc0fc2c314e64 Mon Sep 17 00:00:00 2001 From: Ritchie Martori Date: Fri, 2 May 2014 20:15:01 -0700 Subject: [PATCH] !fixup use DataModel instead of Model for all data based models --- test/access-token.test.js | 2 +- test/acl.test.js | 2 +- test/change.test.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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); });