This commit is contained in:
Ahmed Bouhuolia
2026-01-15 22:04:42 +02:00
parent 3c1273becb
commit 2bbc154f18
34 changed files with 301 additions and 176 deletions

View File

@@ -42,7 +42,7 @@ describe('Bill Payments (e2e)', () => {
costPrice: 100,
sellPrice: 100,
});
itemId = parseInt(item.text, 10);
itemId = parseInt(item.body.id, 10);
const bill = await request(app.getHttpServer())
.post('/bills')
@@ -53,8 +53,8 @@ describe('Bill Payments (e2e)', () => {
billDate: '2023-01-01',
dueDate: '2023-02-01',
billNumber: faker.string.alphanumeric(10),
branchId: 1,
warehouseId: 1,
// branchId: 1,
// warehouseId: 1,
entries: [
{
index: 1,
@@ -68,13 +68,15 @@ describe('Bill Payments (e2e)', () => {
billId = bill.body.id;
});
it('/bill-payments (POST)', () => {
return request(app.getHttpServer())
it('/bill-payments (POST)', async () => {
const response = await request(app.getHttpServer())
.post('/bill-payments')
.set('organization-id', orgainzationId)
.set('Authorization', AuthorizationHeader)
.send(createBillPaymentRequest())
.expect(201);
console.log(response.body);
});
it('/bill-payments (GET)', () => {