change tests to advanceable
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
61859a23c9
commit
5824acf3bc
|
@ -120,5 +120,6 @@
|
|||
"This item is not available": "This item is not available",
|
||||
"Deny buy request": "Purchase request for ticket id [{{ticketId}}]({{{url}}}) has been rejected. Reason: {{observation}}",
|
||||
"The type of business must be filled in basic data": "The type of business must be filled in basic data",
|
||||
"isWithoutNegatives": "isWithoutNegatives"
|
||||
"isWithoutNegatives": "isWithoutNegatives",
|
||||
"The worker has hours recorded that day": "The worker has hours recorded that day"
|
||||
}
|
|
@ -19,5 +19,10 @@
|
|||
"Package cannot be blank": "Package cannot be blank",
|
||||
"State cannot be blank": "State cannot be blank",
|
||||
"Worker cannot be blank": "Worker cannot be blank",
|
||||
"Agency cannot be blank": "Agency cannot be blank"
|
||||
"Agency cannot be blank": "Agency cannot be blank",
|
||||
"nickname": "nickname",
|
||||
"shipped": "shipped",
|
||||
"landed": "landed",
|
||||
"isWithoutNegatives": "isWithoutNegatives",
|
||||
"Changed this data from the ticket": "Changed this data from the ticket"
|
||||
}
|
|
@ -116,7 +116,6 @@ module.exports = Self => {
|
|||
const [salesAdvanceable] = await Self.rawSql(query, params, myOptions);
|
||||
|
||||
const itemAdvanceable = new Map();
|
||||
console.log(salesAdvanceable);
|
||||
for (sale of salesAdvanceable)
|
||||
itemAdvanceable.set(sale.id, sale.advanceable);
|
||||
|
||||
|
|
|
@ -83,8 +83,8 @@ describe('sale priceDifference()', () => {
|
|||
const firstItem = result.items[0];
|
||||
const secondtItem = result.items[1];
|
||||
|
||||
expect(firstItem.available).toEqual(410);
|
||||
expect(secondtItem.available).toEqual(1870);
|
||||
expect(firstItem.advanceable).toEqual(440);
|
||||
expect(secondtItem.advanceable).toEqual(1980);
|
||||
|
||||
await tx.rollback();
|
||||
} catch (e) {
|
||||
|
|
|
@ -73,12 +73,12 @@ describe('Ticket', () => {
|
|||
{
|
||||
item: 1,
|
||||
quantity: 2,
|
||||
available: 1
|
||||
advanceable: 1
|
||||
},
|
||||
{
|
||||
item: 2,
|
||||
quantity: 1,
|
||||
available: 5
|
||||
advanceable: 5
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue