Updated unit tests
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2021-06-16 11:15:17 +02:00
parent efc9edb384
commit 3e938fa9fb
1 changed files with 8 additions and 0 deletions

View File

@ -115,6 +115,14 @@ describe('Component vnMonitorSalesTickets', () => {
});
});
describe('totalPriceColor()', () => {
it('should return "warning" when the ticket amount is less than 50€', () => {
const result = controller.totalPriceColor({totalWithVat: '8.50'});
expect(result).toEqual('warning');
});
});
describe('preview()', () => {
it('should show the dialog summary', () => {
controller.$.summary = {show: () => {}};