Skip to content

Commit

Permalink
Remove redundant user header spec
Browse files Browse the repository at this point in the history
  • Loading branch information
lucjan committed Jan 21, 2015
1 parent 89d511f commit dcc41fa
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions test/specs/api-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,17 +138,6 @@ describe("LS-JS-SDK", function() {
expect(req.requestHeaders["X-Lifestreams-3scale-AppKey"]).toBe("9fce4bb6bc33d780002fda854e6aaa03");
});

it("should set the X-Lifestreams-User request header", function() {
Timeline.init({
app_id: "91312294",
app_key: "9fce4bb6bc33d780002fda854e6aaa03",
api_user: "{'username':'lukas'}"
});
Timeline.api("/t", "get", function(){});
req = jasmine.Ajax.requests.mostRecent();
expect(req.requestHeaders["X-Lifestreams-User"]).toBe("{'username':'lukas'}");
});

it("should define an onreadystatechange handler", function() {
var req = jasmine.Ajax.requests.mostRecent();
expect(typeof req.onreadystatechange).toBe("function");
Expand Down

0 comments on commit dcc41fa

Please sign in to comment.