Skip to content

Commit

Permalink
tests: init general api resource.
Browse files Browse the repository at this point in the history
  • Loading branch information
narekhovhannisyan committed Dec 9, 2023
1 parent b8f0ec0 commit 25fccb5
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/__tests__/lib/api/General.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import axios from "axios";

import General from "../../../lib/api/General";

describe("lib/api/General: ", () => {
const testInboxId = 100;
const generalAPI = new General(axios, testInboxId);

describe("class General(): ", () => {
describe("init: ", () => {
it("initalizes with all necessary params.", () => {
expect(generalAPI).toHaveProperty("accountAccesses");
expect(generalAPI).toHaveProperty("accounts");
expect(generalAPI).toHaveProperty("permissions");
});
});
});
});

0 comments on commit 25fccb5

Please sign in to comment.