Skip to content

Commit 872dc89

Browse files
authored
chore: remove deprecated endpoints (#152)
1 parent fdacc65 commit 872dc89

20 files changed

Lines changed: 6 additions & 305 deletions

__tests__/mocks/blocks.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,4 @@ export const mockBlocks = (host: string) => {
3030
.reply(200, {
3131
data: [],
3232
});
33-
34-
nock(host)
35-
.post("/blocks/search")
36-
.reply(200, {
37-
data: [],
38-
});
3933
};

__tests__/mocks/delegates.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,4 @@ export const mockDelegates = (host: string) => {
1616
nock(host)
1717
.get("/delegates/123/voters")
1818
.reply(200, { data: [] });
19-
20-
21-
nock(host)
22-
.post("/delegates/search")
23-
.reply(200, { data: [] });
2419
};

__tests__/mocks/locks.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@ export const mockLocks = (host: string) => {
1313
data: [],
1414
});
1515

16-
nock(host)
17-
.post("/locks/search")
18-
.reply(200, {
19-
data: [],
20-
});
21-
2216
nock(host)
2317
.post("/locks/unlocked")
2418
.reply(200, {

__tests__/mocks/transactions.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ export const mockTransactions = (host: string) => {
2121
.get("/transactions/unconfirmed/123")
2222
.reply(200, { data: [] });
2323

24-
nock(host)
25-
.post("/transactions/search")
26-
.reply(200, { data: [] });
27-
2824
nock(host)
2925
.get("/transactions/types")
3026
.reply(200, { data: [] });

__tests__/mocks/wallets.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ export const mockWallets = (host: string) => {
2929
.get("/wallets/top")
3030
.reply(200, { data: [] });
3131

32-
nock(host)
33-
.post("/wallets/search")
34-
.reply(200, { data: [] });
35-
3632
nock(host)
3733
.get("/wallets/123/locks")
3834
.reply(200, { data: [] });

__tests__/resources/blocks.test.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,4 @@ describe("API - 2.0 - Resources - Blocks", () => {
3333

3434
expect(response.status).toBe(200);
3535
});
36-
37-
it("should call \"search\" method", async () => {
38-
const response = await resource.search({});
39-
40-
expect(response.status).toBe(200);
41-
});
4236
});

__tests__/resources/delegates.test.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,4 @@ describe("API - 2.0 - Resources - Delegates", () => {
2121

2222
expect(response.status).toBe(200);
2323
});
24-
25-
it("should call \"search\" method", async () => {
26-
const response = await resource.search({});
27-
28-
expect(response.status).toBe(200);
29-
});
3024
});

__tests__/resources/locks.test.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@ describe("API - 2.0 - Resources - Locks", () => {
1616
expect(response.status).toBe(200);
1717
});
1818

19-
it("should call \"search\" method", async () => {
20-
const response = await resource.search({});
21-
22-
expect(response.status).toBe(200);
23-
});
24-
2519
it("should call \"unlocked\" method", async () => {
2620
const response = await resource.unlocked({});
2721

__tests__/resources/transactions.test.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,6 @@ describe("API - 2.0 - Resources - Transactions", () => {
3434
expect(response.status).toBe(200);
3535
});
3636

37-
it("should call \"search\" method", async () => {
38-
const response = await resource.search({});
39-
40-
expect(response.status).toBe(200);
41-
});
42-
4337
it("should call \"types\" method", async () => {
4438
const response = await resource.types();
4539

__tests__/resources/wallets.test.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,6 @@ describe("API - 2.0 - Resources - Wallets", () => {
4646
expect(response.status).toBe(200);
4747
});
4848

49-
it("should call \"search\" method", async () => {
50-
const response = await resource.search({});
51-
52-
expect(response.status).toBe(200);
53-
});
54-
5549
it("should call \"locks\" method", async () => {
5650
const response = await resource.locks("123");
5751

0 commit comments

Comments
 (0)