Skip to content

Commit

Permalink
Merge pull request #249 from pusher/include-urls-in-errors
Browse files Browse the repository at this point in the history
Fix failing test, add test for cluster check
  • Loading branch information
hph authored Sep 4, 2017
2 parents 56c2847 + 78a9356 commit 9de0a35
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion spec/javascripts/unit/core/pusher_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,15 @@ describe("Pusher", function() {

it("should allow a hex key", function() {
spyOn(Logger, "warn");
var pusher = new Pusher("1234567890abcdef");
var pusher = new Pusher("1234567890abcdef", { cluster: "mt1" });
expect(Logger.warn).not.toHaveBeenCalled();
});

it("should warn if no cluster supplied", function() {
spyOn(Logger, "warn");
var pusher = new Pusher("1234567890abcdef");
expect(Logger.warn).toHaveBeenCalled();
});
});

describe("after construction", function() {
Expand Down

0 comments on commit 9de0a35

Please sign in to comment.