Skip to content

Commit 1622a36

Browse files
test: add unit tests for ContactImports class to verify initialization and method properties
1 parent 92adcc8 commit 1622a36

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import axios from "axios";
2+
3+
import ContactImports from "../../../lib/api/ContactImports";
4+
5+
describe("lib/api/ContactImports: ", () => {
6+
const accountId = 100;
7+
const contactImportsAPI = new ContactImports(axios, accountId);
8+
9+
describe("class ContactImports(): ", () => {
10+
describe("init: ", () => {
11+
it("initializes with all necessary params.", () => {
12+
expect(contactImportsAPI).toHaveProperty("create");
13+
expect(contactImportsAPI).toHaveProperty("get");
14+
});
15+
});
16+
});
17+
});

0 commit comments

Comments
 (0)