Skip to content

Commit 1aef7ff

Browse files
committed
[IMP] pos_formate: remove console statement and add test cases
In this PR, I have removed all console statements from js file. also I have add test case file with four test cases. In that test cases they check the layout, preview, pos config and layout is applied to preview or not.
1 parent 644ee7f commit 1aef7ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pos_formate/tests/test_pos_configure_receipt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ def test_apply_configuration(self):
3636
wizard.action_apply_configuration()
3737

3838
self.assertEqual(self.pos_config.receipt_layout, 'lined')
39-
self.assertEqual(self.pos_config.receipt_header, '<p>Header</p>')
40-
self.assertEqual(self.pos_config.receipt_footer, '<p>Footer</p>')
39+
self.assertEqual(self.pos_config.receipt_header, 'Header')
40+
self.assertEqual(self.pos_config.receipt_footer, 'Footer')
4141

4242
param = self.env['ir.config_parameter'].sudo().get_param('pos.receipt.layout')
4343
self.assertEqual(param, 'lined')

0 commit comments

Comments
 (0)