Skip to content

Commit

Permalink
test(examples): fixed unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
mgordel committed Sep 29, 2023
1 parent 72f31eb commit 777b82d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/task/work.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ describe("Work Context", () => {

describe("getWebsocketUri()", () => {
it("should throw error if there is no network node", () => {
expect(context["networkNode"]).toBeUndefined();
expect(() => context.getIp()).toThrow(new Error("There is no network in this work context"));
});

it("should return websocket URI", () => {
Expand All @@ -205,7 +205,7 @@ describe("Work Context", () => {

describe("getIp()", () => {
it("should throw error if there is no network node", () => {
expect(context["networkNode"]).toBeUndefined();
expect(() => context.getIp()).toThrow(new Error("There is no network in this work context"));
});

it("should return ip address of provider vpn network node", () => {
Expand Down

0 comments on commit 777b82d

Please sign in to comment.