Skip to content

Commit 083cd55

Browse files
committed
Merge branch 'url-fixes' into 'main'
Fixing urls in mock tests See merge request nwac/sdk-ts!142
2 parents c6886cf + 1bf7e0b commit 083cd55

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/kycAgeVerification.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ afterEach(() => {
3939
describe("KYC Age Verification", () => {
4040
it("KYC age verification", async () => {
4141
fetchMock.mockGlobal().post(
42-
"https://network-as-code.p-eu.rapidapi.com/passthrough/camara/v1/passthrough/kyc-age-verification/v0.1/verify",
42+
"https://network-as-code.p-eu.rapidapi.com/passthrough/camara/v1/kyc-age-verification/kyc-age-verification/v0.1/verify",
4343
(req: any): any => {
4444
expect(req.headers).toEqual({
4545
"Content-Type": "application/json",
@@ -92,7 +92,7 @@ describe("KYC Age Verification", () => {
9292

9393
it("KYC age verification with not all attributes provided", async () => {
9494
fetchMock.mockGlobal().post(
95-
"https://network-as-code.p-eu.rapidapi.com/passthrough/camara/v1/passthrough/kyc-age-verification/v0.1/verify",
95+
"https://network-as-code.p-eu.rapidapi.com/passthrough/camara/v1/kyc-age-verification/kyc-age-verification/v0.1/verify",
9696
(req: any): any => {
9797
expect(req.headers).toEqual({
9898
"Content-Type": "application/json",
@@ -139,7 +139,7 @@ describe("KYC Age Verification", () => {
139139

140140
it("missing phone number will add it in the backend and work", async () => {
141141
fetchMock.mockGlobal().post(
142-
"https://network-as-code.p-eu.rapidapi.com/passthrough/camara/v1/passthrough/kyc-age-verification/v0.1/verify",
142+
"https://network-as-code.p-eu.rapidapi.com/passthrough/camara/v1/kyc-age-verification/kyc-age-verification/v0.1/verify",
143143
(req: any): any => {
144144
expect(req.headers).toEqual({
145145
"Content-Type": "application/json",

tests/kycMatch.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ afterEach(() => {
3939
describe("KYC Match", () => {
4040
it("KYC Match should match customer", async () => {
4141
fetchMock.mockGlobal().post(
42-
"https://network-as-code.p-eu.rapidapi.com/passthrough/camara/v1/passthrough/kyc-match/v0.3/match",
42+
"https://network-as-code.p-eu.rapidapi.com/passthrough/camara/v1/kyc-match/kyc-match/v0.3/match",
4343
(req: any): any => {
4444
expect(req.headers).toEqual({
4545
"Content-Type": "application/json",
@@ -124,7 +124,7 @@ describe("KYC Match", () => {
124124

125125
it("KYC Match with not all attributes requested", async () => {
126126
fetchMock.mockGlobal().post(
127-
"https://network-as-code.p-eu.rapidapi.com/passthrough/camara/v1/passthrough/kyc-match/v0.3/match",
127+
"https://network-as-code.p-eu.rapidapi.com/passthrough/camara/v1/kyc-match/kyc-match/v0.3/match",
128128
(req: any): any => {
129129
expect(req.headers).toEqual({
130130
"Content-Type": "application/json",
@@ -184,7 +184,7 @@ describe("KYC Match", () => {
184184

185185
it("should add the device phone number to the body in the backend", async () => {
186186
fetchMock.mockGlobal().post(
187-
"https://network-as-code.p-eu.rapidapi.com/passthrough/camara/v1/passthrough/kyc-match/v0.3/match",
187+
"https://network-as-code.p-eu.rapidapi.com/passthrough/camara/v1/kyc-match/kyc-match/v0.3/match",
188188
(req: any): any => {
189189
expect(req.headers).toEqual({
190190
"Content-Type": "application/json",

0 commit comments

Comments
 (0)