Skip to content

Commit

Permalink
Fixed code issues reported by jshint
Browse files Browse the repository at this point in the history
  • Loading branch information
dpobel committed Mar 28, 2017
1 parent 5f885f3 commit d8956f0
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions test/SessionAuthAgent.tests.js
Expand Up @@ -300,18 +300,18 @@ define(["authAgents/SessionAuthAgent", "structures/CAPIError"], function (Sessio

it("should provide the userService.createSession error", function () {
var createSessionError = new CAPIError(),
capi = {
getUserService: function () {
return userService;
}
},
userService = {
createSession: function (struct, callback) {
callback(createSessionError, false);
},
newSessionCreateStruct: function () {
return {};
}
},
capi = {
getUserService: function () {
return userService;
}
};

spyOn(userService, 'createSession').andCallThrough();
Expand Down Expand Up @@ -415,15 +415,15 @@ define(["authAgents/SessionAuthAgent", "structures/CAPIError"], function (Sessio

it("should handle the userService.deleteSession error", function () {
var deleteSessionError = new CAPIError(),
capi = {
getUserService: function () {
return userService;
}
},
userService = {
deleteSession: function (href, callback) {
callback(deleteSessionError, false);
}
},
capi = {
getUserService: function () {
return userService;
}
};

spyOn(userService, 'deleteSession').andCallThrough();
Expand Down

0 comments on commit d8956f0

Please sign in to comment.