From 3e938fa9fb348c242102559f217e53102e875a85 Mon Sep 17 00:00:00 2001 From: joan Date: Wed, 16 Jun 2021 11:15:17 +0200 Subject: [PATCH] Updated unit tests --- modules/monitor/front/index/tickets/index.spec.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/monitor/front/index/tickets/index.spec.js b/modules/monitor/front/index/tickets/index.spec.js index fc689140a6..8d06b8d7d1 100644 --- a/modules/monitor/front/index/tickets/index.spec.js +++ b/modules/monitor/front/index/tickets/index.spec.js @@ -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: () => {}};