Skip to content

Commit

Permalink
Use httpbin for notification test
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacgr committed Aug 15, 2021
1 parent 529b662 commit 49acacf
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -2,8 +2,8 @@ const { expect } = require("chai");
const Jaysonic = require("../../src/");

const http = new Jaysonic.client.http({
host: "gurujsonrpc.appspot.com",
path: "/guru",
host: "httpbin.org",
path: "/status/200",
scheme: "https",
port: 443
});
Expand All @@ -12,7 +12,7 @@ describe("Http Client Protocol Notifications", () => {
it("should reject with error if no 204 response recieved for notification", (done) => {
http
.request()
.notify("guru.test", ["isaac"])
.notify("guru.test")
.catch((error) => {
expect(error.message).to.eql("no response receieved for notification");
done();
Expand Down

0 comments on commit 49acacf

Please sign in to comment.