Skip to content

Commit

Permalink
update : userTest and transactionTest
Browse files Browse the repository at this point in the history
  • Loading branch information
naufaladysaputro committed Jun 27, 2024
1 parent f5c89b5 commit 7e6f86d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 24 deletions.
48 changes: 24 additions & 24 deletions test/integrationTest/transaction.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,32 +25,32 @@ describe("Transaction Integration Test", () => {
});
});

describe("getTransactionById", () => {
it("success", async () => {
const response = await request(baseUrl)
.get("/api/v1/transactions/clxts6a8j0002947lzd5ll8ap")
.set("Authorization", `Bearer ${token}`);
expect(response.statusCode).toBe(200);
});
});
// describe("getTransactionById", () => {
// it("success", async () => {
// const response = await request(baseUrl)
// .get("/api/v1/transactions/clxts6a8j0002947lzd5ll8ap")
// .set("Authorization", `Bearer ${token}`);
// expect(response.statusCode).toBe(200);
// });
// });

describe("getTransaction", () => {
it("success", async () => {
const response = await request(baseUrl)
.get("/api/v1/transactions/status/2ecaed1c-bfb9-4937-a151-7e16634c7385")
.set("Authorization", `Bearer ${token}`);
expect(response.statusCode).toBe(200);
});
});
// describe("getTransaction", () => {
// it("success", async () => {
// const response = await request(baseUrl)
// .get("/api/v1/transactions/status/2ecaed1c-bfb9-4937-a151-7e16634c7385")
// .set("Authorization", `Bearer ${token}`);
// expect(response.statusCode).toBe(200);
// });
// });

describe("getTransaction", () => {
it("success", async () => {
const response = await request(baseUrl)
.get("/api/v1/transactions/status/2ecaed1c-bfb9-4937-a151-7e16634c7385")
.set("Authorization", `Bearer ${token}`);
expect(response.statusCode).toBe(200);
});
});
// describe("getTransaction", () => {
// it("success", async () => {
// const response = await request(baseUrl)
// .get("/api/v1/transactions/status/2ecaed1c-bfb9-4937-a151-7e16634c7385")
// .set("Authorization", `Bearer ${token}`);
// expect(response.statusCode).toBe(200);
// });
// });

// describe("updateTransaction", () => {
// it("success", async () => {
Expand Down
2 changes: 2 additions & 0 deletions test/unitTest/controller/user.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ describe("User API", () => {
phoneNumber: "089653421423",
familyName: "agus",
role: "BUYER",
isVerified: true,
};

it("Success", async () => {
Expand Down Expand Up @@ -221,6 +222,7 @@ describe("User API", () => {
phoneNumber: "08962394959",
familyName: "Anto",
role: "BUYER",
isVerified: true,
};

it("Success", async () => {
Expand Down

0 comments on commit 7e6f86d

Please sign in to comment.