Upgrade loopback-testing to the latest ^1.4

This commit is contained in:
Miroslav Bajtoš 2016-09-12 13:21:07 +02:00
parent 7d1f31cfb4
commit c4214024be
2 changed files with 5 additions and 4 deletions

View File

@ -86,7 +86,7 @@
"karma-script-launcher": "^1.0.0",
"loopback-boot": "^2.7.0",
"loopback-datasource-juggler": "^2.19.1",
"loopback-testing": "~1.1.0",
"loopback-testing": "^1.4.0",
"mocha": "^3.0.0",
"phantomjs-prebuilt": "^2.1.7",
"sinon": "^1.13.0",

View File

@ -24,6 +24,7 @@ describe('access control - integration', function() {
});
lt.beforeEach.withApp(app);
lt.beforeEach.withUserModel('user');
/*
describe('accessToken', function() {
@ -105,7 +106,7 @@ describe('access control - integration', function() {
lt.describe.whenLoggedInAsUser(CURRENT_USER, function() {
beforeEach(function() {
this.url = '/api/users/' + this.user.id + '?ok';
this.url = '/api/users/' + this.loggedInAccessToken.userId + '?ok';
});
lt.describe.whenCalledRemotely('DELETE', '/api/users/:id', function() {
lt.it.shouldBeAllowed();
@ -262,7 +263,7 @@ describe('access control - integration', function() {
var self = this;
// Create an account under the given user
app.models.accountWithReplaceOnPUTtrue.create({
userId: self.user.id,
userId: self.loggedInAccessToken.userId,
balance: 100
}, function(err, act) {
actId = act.id;
@ -326,7 +327,7 @@ describe('access control - integration', function() {
var self = this;
// Create an account under the given user
app.models.accountWithReplaceOnPUTfalse.create({
userId: self.user.id,
userId: self.loggedInAccessToken.userId,
balance: 100,
}, function(err, act) {
actId = act.id;