mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-21 16:52:04 -07:00
fix(nock): Fixed failing tests mocked with nock
This commit is contained in:
+2
-2
@@ -114,7 +114,7 @@ describe("#Mining", () => {
|
||||
// Mock the RPC call for unit tests.
|
||||
if (process.env.TEST === "unit") {
|
||||
nock(`${process.env.RPC_BASEURL}`)
|
||||
.post(``)
|
||||
.post(uri => uri.includes("/"))
|
||||
.reply(200, { result: mockData.mockMiningInfo })
|
||||
}
|
||||
|
||||
@@ -163,7 +163,7 @@ describe("#Mining", () => {
|
||||
// Mock the RPC call for unit tests.
|
||||
if (process.env.TEST === "unit") {
|
||||
nock(`${process.env.RPC_BASEURL}`)
|
||||
.post(``)
|
||||
.post(uri => uri.includes("/"))
|
||||
.reply(200, { result: 517604755.6648782 })
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user